/real-senate-floor

a twitter bot that generates fake pics of the senate floor

Primary LanguagePython

real-senate-floor

Setup

1. Install OS level dependencies

  • Python 3
  • geckodriver (latest release here)
  • xvfb (only required if using ubuntu, sudo apt-get install xvfb)

2. Clone this repo

git clone https://github.com/buzzfeed-openlab/real-senate-floor.git
cd real-senate-floor

3. Install required python libraries

Optional but recommended: make a virtual environment using virtualenv and virtualenvwrapper.

Notes:

  • Instructions for setting up virtualenv here.
  • mkvirtualenv will automatically activate the rsf environment; to activate it in the future, just use workon rsf
  • if the virtualenv you make isn't python 3 (check w/ python --version), use mkvirtualenv rsf -p /path/to/your/python3 (find your python3 path with which python3)
mkvirtualenv rsf

Install requirements:

pip install -r requirements.txt

4. Create config file

Copy the example config file:

cp config.py.example config.py

& then update config.py with the relevant twitter credentials