- #Download youtube subtitles install
- #Download youtube subtitles upgrade
- #Download youtube subtitles full
#Download youtube subtitles install
Development Environment Setupįor conda pip install 'fire' 'requests' 'IPython' 'sure' Usage python main.py -hĭeployment - How can I use setuptools to generate a console_scripts entry point which calls python -m mypackage? - Stack Overflow Use in Code import download_youtube_mon as common import download_youtube_subtitle.main as download_youtube_subtitle #.
Will surpass translation option, choose the caption which will be displayed as translation transcript
#Download youtube subtitles full
lang_code.json for full list, or pass False to disable translationĬhoose the caption which will be displayed as original transcript Which will be displayed as original transcript, default to 'zh-Hans' for simplified Chinese, see. The video link or the id of youtube video, the string after 'v=' in a youtube video link lang_code for full listĭl-youtube-cc wgNiGj1nGYE -caption_num=1 -translation 'ja' # choose the caption num for original transcript and use japanese translation,ĭl-youtube-cc wgNiGj1nGYE -caption_num=1 -caption_num_second=2 # manually choose the original and translation transcript from available caption listĭl-youtube-cc wgNiGj1nGYE -translation False # without translationĭl-youtube-cc wgNiGj1nGYE -save_to_file=False # print stuff in consoleĭl-youtube-cc wgNiGj1nGYE -output_file='test.txt' # print stuff in named fileĭl-youtube-cc wgNiGj1nGYE -to_json=True # print stuff in json NAMEĭl-youtube-cc - download youtube closed caption(subtitles) by videoIDĭl-youtube-cc -h # to see this helpful infomationĭl-youtube-cc wgNiGj1nGYE -translation 'ja' # use japanese translation, see. Pip uninstall download-youtube-subtitle -y run in cliĭl-youtube-cc -h will show the following.
All available caption will be displayed, use -caption_num -caption_num_second to choose the caption which will be displayed as original or translation transcript.
#Download youtube subtitles upgrade
Due to changes of youtube api, you need to UPGRADE to 2.0.0, see Install and Run