Closed kelson42 closed 4 years ago
hint: it it's not the help, there are good chances it's not in the software. Your help looks like a very old version (1.0).
Here's what the 2.1.0 version looks like.
$ python youtube2zim --help
usage: youtube2zim [-h] --type {channel,playlist,user} --id YOUTUBE_ID
--api-key API_KEY --name NAME [--format {mp4,webm}]
[--low-quality] [--all-subtitles]
[--pagination NB_VIDEOS_PER_PAGE] [--autoplay]
[--output OUTPUT_DIR] [--no-zim] [--zim-file FNAME]
[--language LANGUAGE] [--locale LOCALE_NAME]
[--title TITLE] [--description DESCRIPTION]
[--creator CREATOR] [--publisher PUBLISHER] [--tags TAGS]
[--profile PROFILE_IMAGE] [--banner BANNER_IMAGE]
[--main-color MAIN_COLOR]
[--secondary-color SECONDARY_COLOR] [--debug] [--keep]
[--skip-download] [--concurrency MAX_CONCURRENCY]
[--only_test_branding] [--version]
Scraper to create a ZIM file from a Youtube Channel or Playlists
optional arguments:
-h, --help show this help message and exit
--type {channel,playlist,user}
Type of collection
--id YOUTUBE_ID Youtube ID of the collection
--api-key API_KEY Youtube API Token
--name NAME ZIM name. Used as identifier and filename (date will
be appended)
--format {mp4,webm} Format to download/transcode video to. webm is smaller
--low-quality Re-encode video using stronger compression
--all-subtitles Include auto-generated subtitles
--pagination NB_VIDEOS_PER_PAGE
Number of videos per page
--autoplay Enable autoplay on video articles (home never have
autoplay). Behavior differs on platforms/browsers.
--output OUTPUT_DIR Output folder for ZIM file or build folder
--no-zim Don't produce a ZIM file, create HTML folder only.
--zim-file FNAME ZIM file name (based on --name if not provided)
--language LANGUAGE ISO-639-3 (3 chars) language code of content
--locale LOCALE_NAME Locale name to use for translations (if avail) and
time representations. Defaults to --language or
English.
--title TITLE Custom title for your project and ZIM. Default to
Channel name (of first video if playlists)
--description DESCRIPTION
Custom description for your project and ZIM. Default
to Channel name (of first video if playlists)
--creator CREATOR Name of content creator. Defaults to Channel name or
“Youtue Channels”
--publisher PUBLISHER
Custom publisher name (ZIM metadata)
--tags TAGS List of comma-separated Tags for the ZIM file.
_videos:yes added automatically
--profile PROFILE_IMAGE
Custom profile image. Squared. Will be resized to
100x100px
--banner BANNER_IMAGE
Custom banner image. Will be resized to 1060x175px
--main-color MAIN_COLOR
Custom color. Hex/HTML syntax (#DEDEDE). Default to
main color of profile image.
--secondary-color SECONDARY_COLOR
Custom secondary color. Hex/HTML syntax (#DEDEDE).
Default to secondary color of profile image.
--debug Enable verbose output
--keep Don't erase build folder on start (for debug/devel)
--skip-download Skip the download step (videos, thumbnails, subtitles)
--concurrency MAX_CONCURRENCY
Number of concurrent threads to use
--only_test_branding Just generate a fake home.html to check branding
(images and colors)
--version Display scraper version and exit
It looks like this:
Nothing about customization of "banner image", "profile image", etc... things which are possible withing the Zimfarm