Skip to content

The 2020 election was a rough one, with historic voter turnout. This is a Python Web Scraper which tweeted live election data from ABC on my personal Twitter account

License

Notifications You must be signed in to change notification settings

siddhxrth/election-tweeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

election-tweeter

simple python web scraper that utilizes the twitter api to tweet live election data

check out my twitter to see this project working!

usage:

- to use this program, clone the repo into a directory of your choice

- IMPORTANT: make sure you have all the dependencies installed or the program will not compile

- try running these commands in the command line to make sure you have all dependencies installed:

 => pip install bs4
 => pip install requests
 => pip install tweepy

- then, create a twitter developer account, and create a new app

- in the election.py file:

auth = tweepy.OAuthHandler("YOS0DjxdDN3JcVZWSM8fzlrOQ", "dAt2hhJgV5M06BiOPZRxxEtEnMU85oOWF1CN8tpD3xsFolfnmN")
auth.set_access_token("1046043340196761602-JILFVkGovrZgVXNXoJmqMz1yAbLydI", "CjYSI8CfilrWfdj4cBN3lEKxzT7eAkfdLdWnfhkHy9gL1")

- replace the strings in the code above with your own api and consumer keys and tokens (don't try to run it with my keys... i obviously regenerated them and these keys don't work anymore :))

- lastly, run the program either in an ide of your choice or in the command line:

python election.py

- enjoy!

About:

hi, i'm sid! to see my other projects, visit my website!

About

The 2020 election was a rough one, with historic voter turnout. This is a Python Web Scraper which tweeted live election data from ABC on my personal Twitter account

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages