Skip to content

download_youtube

thvid.download_youtube

Functions:

videos_from_channel(channel_URL, period=1)

get all video links from a channel in "period" days

download_video(URLs, only_video=False, only_audio=False)

Download videos from list of URLs Args: URLs (list of str): list of URL only_video (bool = True): dowload video only only_audio (bool = True): dowload audio only

download_srt_caption(url, lang='en', out_file='transcript_srt')

Download video caption in .srt format Args: download_cap (bool = False): download caption lang (str = 'en'): language of caption

Notes" Error now: https://github.com/pytube/pytube/issues/1085

download_json_caption(URL, out_file='transcript_json.json')

Download video caption in .json format