The script turns the page WWDC .html
to .srt
format subtitles.
- Open the page with the video you are interested in.
https://developer.apple.com/videos/play/wwdc2022/10068/
- Testing was carried out for two languages:
EN
andRU
.EN
- Right-click and select
Save Page as...
in the pop-up menu. - In the Finder menu, select
Save the entire page
and clickSave
. - In the command line, go to the path of directory where the script was saved and enter the following command:
./script.swift "/{path}/{filename}.html" "{pathToDirectory}"
- Download the video from the page from point
{1}
. - Open a video in a player that supports subtitles and transfer the generated document
.sdt
.
- Right-click and select
RU
To translate into Russian, I advise to use Yandex browser and its built-in translator. Next steps are suggested for this browser.- Go to the
Transcript
tab on the video page. - In the navigation bar select
Translate page to Russian
and start slowly flipping throughTranscript
. - As soon as the entire transcription is translated, do all the steps from the
EN
point.
- Go to the