youtube_dl_helper

Code.youtube_dl_helper.nsbool(value)[source]

Format a boolean value for a Netscape cookie jar file.

Parameters:
value : pybool

The boolean value to format.

Returns:
str

‘TRUE’ or ‘FALSE’.

Code.youtube_dl_helper.process_youtube(url)[source]

Process URL using youtube_dl

Parameters:
url : str

The URL of the YouTube video.

Returns:
Optional[str]

The URL of the audio object.

Examples

>>> process_youtube(url='https://www.youtube.com/watch?v=dQw4w9WgXcQ')
...