/sidebar-banner

Scheduler for the /r/Blackfellas sidebar banners

Primary LanguagePython

sidebar banner updater for /r/blackfellas

Only ImGur album or gallery links are valid urls at the moment.

An album image must be less than 500kB each in size (reddit limitations).

Requirements:

  • Reddit account (oauth)
  • Imgur account (ouath)
  • Python 3 (locally or set up on a server; I'm using Heroku as an example server)
  • Pip (to install the python modules in requirements.txt). Heroku does this automatically.
  • pgAdmin to create and connect to databases locally and remotely (on Heroku) http://www.pgadmin.org/
  • Heroku host (free tier) with Postgres database installed. If you want to run locally, you won't need Procfile
  • Create a database using psycopg2 (heroku run python) or pgAdmin.
  • Configure your Reddit, Imgur, and Postgres DB credentials by entering them into schedule.cfg (no need to enter Reddit password if using oauth)
  • Optional: copy the files to a Dropbox folder and deploy by syncing it with Heroku.

Running: