Twitter bot posting media from various subreddits.
- You need ffmpeg installed on your machine.
- You need an access to the twitter Api V1.
- Set up a creds.py file and copy your api keys. You can also use environement variables.
twitter = {
"consumer_key": "",
"consumer_secret": "",
"access_token": "",
"access_token_secret": ""
}
reddit = {
"client_id" : "",
"client_secret" : "",
"user_agent" : ""
}
DO NOT DISCLOSE THEM BY ANY MEAN
- Define subreddit and their respective tweet.
If key values are left empty,default_tweet
will be its value.
subreddits = {
subreddit1: This is a tweet.,
subreddit2: ''
}
- You can dynamically ban posts appending submission.id to banned_post[]
banned_post = [
u7vamm,
u7wts1
]