Skip to content

OSCAR-Studi-Kino/trailer-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trailer-downloader

Usage

Initialize the venv:

mkdir .venv

Install the dependencies:

pipenv install

Run the script (example):

.venv/bin/python -m downloader -l debug -d tmp workbook -s F11 -f voting.xlsx

Help output

usage: __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 file
usage: __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 use
usage: __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

About

Downloads a list of YouTube trailers and generates an M3U playlist from it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages