Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
/ reddit-twitter-bot Public archive

Posting content from reddit to twitter.

Notifications You must be signed in to change notification settings

g4bey/reddit-twitter-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit to twitter bot.

Twitter bot posting media from various subreddits.

Requirement:

  • You need ffmpeg installed on your machine.
  • You need an access to the twitter Api V1.

Set-up:

  • 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
 ]

About

Posting content from reddit to twitter.

Topics

Resources

Stars

Watchers

Forks