jacktose / PI-vs-538

Compares FiveThirtyEight's odds and PredictIt prices for each state.
MIT License
1 stars 1 forks source link

How to Scrape 538 Data #3

Closed srnicholson closed 7 years ago

srnicholson commented 7 years ago

You can scrape 538 election forecast data in JSON format using the following syntax:

https://projects.fivethirtyeight.com/2016-election-forecast/{STATE ABBREV}.json

Example for Colorado: https://projects.fivethirtyeight.com/2016-election-forecast/CO.json

Here's a quick-n-dirty Excel version

jacktose commented 7 years ago

YES! Thank you. All my googling did not turn that up somehow.

Out of curiosity, how did you happen upon my little project?

jacktose commented 7 years ago

Alright, changed it to scrape from 538 API, too. Much nicer and more useful. Thanks again!

srnicholson commented 7 years ago

Glad to help! I stumbled upon your project while browsing around repositories involving 538 and noticed that yours was something very similar to what i had done.

Happy coding!

jacktose commented 7 years ago

You too!