Initialize the venv:
mkdir .venvInstall the dependencies:
pipenv installRun the script (example):
.venv/bin/python -m downloader -l debug -d tmp workbook -s F11 -f voting.xlsxusage: __main__.py [-h] [-l {critical,fatal,error,warn,info,debug}]
[-p PLAYLIST_NAME] [-d DIRECTORY]
{urls,workbook} ...
Script for downloading a list of YouTube videos and generating an M3U playlist from it
options:
-h, --help show this help message and exit
-l, --logging {critical,fatal,error,warn,info,debug}
Set the log level (default: info)
-p, --playlist-name PLAYLIST_NAME
Generated playlist file name (default:
000_playlist.m3u8)
-d, --directory DIRECTORY
Output directory to place downloaded files in
(default: .)
subcommands:
Subcommands for the script. Use [subcommand] -h to view specified
arguments.
{urls,workbook}
urls Download trailers and create a M3U playlist from a
list of URLs
workbook Download trailers and create a M3U playlist from an
excel workbook fileusage: __main__.py workbook [-h] -f FILE -s CELL_START [-e CELL_END]
[--sheet-num SHEET_NUM]
Download trailers and create a M3U playlist from an excel workbook file
options:
-h, --help show this help message and exit
-f, --file FILE Workbook filename
-s, --cell-start CELL_START
Start cell to start reading from
-e, --cell-end CELL_END
End cell to stop reading at (inclusive)
--sheet-num SHEET_NUM
Sheet to useusage: __main__.py urls [-h] -u [URLS ...]
Download trailers and create a M3U playlist from a list of URLs
options:
-h, --help show this help message and exit
-u, --urls [URLS ...]
Video URLs to download