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 thersf
environment; to activate it in the future, just useworkon rsf
- if the virtualenv you make isn't python 3 (check w/
python --version
), usemkvirtualenv rsf -p /path/to/your/python3
(find your python3 path withwhich 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