Coder Social home page Coder Social logo

apstatsproject's Introduction

APStatsProject

Ben Shamblin's AP Stats project comparing notable deaths from 2006 through 2016 in order to determine if 2016 notable deaths were indeed higher than normal as some reports have claimed.

In this comparison, I compared three sources:

Death Server (http://dpsinfo.com/dps/)

Wikipedia Deaths (https://en.wikipedia.org/wiki/YEAR#Deaths)

NY Times Obituaries

The Death Server data was scraped and parsed using a custom script (parse_death_stats.py). The Wikipedia data was collected using the wikipedia python module (https://pypi.python.org/pypi/wikipedia/) and a custom script (wikipedia_search.py) that generates a CSV file from the collected data. The NYTimes data was collected through their article API (http://developer.nytimes.com/) and a custom script to retrieve the results (nytimes.py) and parse the returned results into a CSV file (parse_nytimes.py). Using the NYTimes API turned out to difficult since you can only return 10 results per page, and a maximum of 120 pages from the API. This meant that I had to chop the searches into parts and stitch them together. In addition, each API key can only be used for 1000 queries per day. After trying to get a higher limit from the NYTimes (and failing) I obtained multiple keys and spread the queries out over those keys in order to complete the 11 year data collection.

apstatsproject's People

Contributors

wjshamblin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.