Skip to content

Getting Started with feedr

Dylan House edited this page Mar 17, 2017 · 5 revisions

Setup a Twitter App

Navigate to https://apps.twitter.com/ and create a new Twitter App. Configure the app in the following ways:

  1. Enable Read and Write permissions.
  2. Generate your Consumer and Access keys, and add them to their respective variables in src/main.py.

Next, you can specify your feeds by editing the main.py file. At the top of said file, there's a list structure called FEEDS that will store all of your RSS feeds. Add your feed while following the format in the example.

The image is not some outside resource. It's something that you have to create. To fit perfectly in Twitter's viewing window, it's recommended that an image be at least 520 x 210 in dimension. And, by default, images need to go into the media folder. If you don't want images in your tweets, then you can easily change & remove a few lines of code in main.py.

One more thing... Before going live, first run main.py with api.update_* commented-out. If you don't, then you're likely to flood your Twitter feed because your database/rss_entries.db is empty. After that, go ahead and run feedr.py as normal. Maybe setup a cronjob so that it runs periodically.

Clone this wiki locally