Skip to content

A content generation & posting bot for TikTok, scraping posts from r/reddits

Notifications You must be signed in to change notification settings

1chappie/tiktok-reddit-autobot

 
 

Repository files navigation

TikTok automatic Reddit content bot

Automatic content bot - can scrape, render and upload content to TikTok from any subreddit.

Setup

  1. pip install -r requirements.txt (you may or may not need to have Chrome installed)
  2. Populate all categories in config.yaml
    tiktok_sessionid: can be obtained from the cookie header after logging into TikTok
    reddit_clientid, reddit_clientsecret: can be obtained from here after creating a new web app
    reddit_username, reddit_password: your Reddit username and password

Usage

  1. To customize the assets:
    • rsc/background (create folder): .mp4 videos of choice (randomly selected)
    • rsc/songs: songs of choice (randomly selected, can be empty)
  2. Run python3 main.py to scrape and upload content from the default pool of subreddits
  3. Or run pyhton3 main.py <subreddit> <post_type> to scrape and upload content from a specific subreddit
    • <subreddit>: the subreddit to scrape from
    • <post_type>: the type of post to scrape from (can be story or comments)
      (story posts are posts with only a title and a body - split into cards with moviepy and spacy,
      comments posts are posts with a title and a comment thread - screenshotted with selenium)

About

A content generation & posting bot for TikTok, scraping posts from r/reddits

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%