/election_bots

Detecting Twitter bots in the midterm elections

Primary LanguagePythonMIT LicenseMIT

election_bots

Finding Twitter bots from the recent midterm elections.

For Operations Analytics (15.774) at MIT Sloan with Tauhid Zaman.

Please put your Twitter Developer Account credentials in config.

Installation and Usage

$ # Install Python 3.7 and git
$ pip install pipenv
$ git clone git@github.com:bfeeser/election_bots.git
$ cd election_bots
$ pipenv install
$ pipenv run python election_bot.py search democratic
$ pipenv run python election_bot.py followers democratic_tweets.csv democratic_followers.csv
$ pipenv run python election_bot.py timeline democratic_followers.csv --user_id_column="from_user_id"