Automatic content bot - can scrape, render and upload content to TikTok from any subreddit.
pip install -r requirements.txt
(you may or may not need to have Chrome installed)- 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
- To customize the assets:
rsc/background
(create folder): .mp4 videos of choice (randomly selected)rsc/songs
: songs of choice (randomly selected, can be empty)
- Run
python3 main.py
to scrape and upload content from the default pool of subreddits - 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 bestory
orcomments
)
(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)