Skip to content

Latest commit

 

History

History
56 lines (54 loc) · 2.71 KB

configuration.md

File metadata and controls

56 lines (54 loc) · 2.71 KB

redditttsbot Configuration

Usage

python main.py --background BACKGROUND ...

Additional Flags

  • -h, --help
    Show help message
  • --background BACKGROUND
    Required flag, sets the video to be used for the background
  • --subreddit SUBREDDIT
    Select subreddit to scrape from. Default is askreddit.
  • --min-len MIN_LEN
    Select minimum length for content, in characters. Default is 600.
  • --len-range LEN_RANGE
    Number of characters creater than MIN_LEN the content may be, in characters. Default is 300.
  • --use-post
    Enabling this flag uses the post for content, instead of a random comment.
  • --subtitle-wrap-width SUBTITLE_WRAP_WIDTH
    Choose the number of characters the subtitles will wrap at. Default is 30.
  • --subtitle-font SUBTITLE_FONT
    Choose the font of the subtitles. Default is "Arial"
  • --subtitle-font-size SUBTITLE_FONT_SIZE
    Choose the font size of the subtitles. Default is 60.
  • --post-pool-size POST_POOL_SIZE
    Set the number of top posts from which the final post is chosen. Default is 20.
  • --comment-pool-size COMMENT_POOL_SIZE
    Set the number of top comments from which the top comment is chosen. Default is 40.
  • --post-time-span POST_TIME_SPAN Set the time span from which the top POST_POOL_SIZE posts are chosen. Default is "week".
  • --firefox-profile FIREFOX_PROFILE
    Select a Firefox profile to use instead of the default one.
  • --subtitle-outline-size SUBTITLE_OUTLINE_SIZE
    Set the outline size of the subtitles. Default is 14.
  • --random-cutout
    Enabling this flag takes a random portion of the background footage, rather than beginning at the start and truncating anything past the content.
  • --headless
    Enable this to hide browser GUI when taking the post screenshot.
  • --subtitle-color SUBTITLE_COLOR
    Color for subtitles. Default is "white".
  • --subtitle-outline-color SUBTITLE_OUTLINE_COLOR
    Set the outline color for subtitles. Default is "black".
  • --post-width POST_WIDTH
    Set the width in pixels for the post image. Default is 1000.
  • --post-content-max-width POST_CONTENT_MAX_WIDTH
    Set the max width of the post, in CSS ch units. Default is 60.
  • --only-video
    Only generate a video, do not upload it to YouTube.
  • --video-tags VIDEO_TAGS Space separated list of tags (without the hashtag)
  • --title-before TITLE_BEFORE
    Text to prepend before the video title
  • --title-after TITLE_AFTER Text to append after the video title
  • --ttsmaker-token TTSMAKER_TOKEN
    Token to use for online voice synthesis