Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noqcks/stats_scraper
NHL.com Statistics Scraper
https://github.com/noqcks/stats_scraper
Last synced: 20 days ago
JSON representation
NHL.com Statistics Scraper
- Host: GitHub
- URL: https://github.com/noqcks/stats_scraper
- Owner: noqcks
- License: mit
- Created: 2014-09-09T17:06:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-26T03:52:33.000Z (over 10 years ago)
- Last Synced: 2024-10-11T16:13:23.233Z (3 months ago)
- Size: 1.44 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Circle CI](https://circleci.com/gh/HipchecksAndHistograms/stats_scraper/tree/master.png?style=badge)](https://circleci.com/gh/HipchecksAndHistograms/stats_scraper/tree/master)
stats_scraper
=============NHL.com Statistics Scraper. WIP.
### Intro
The goal of this project is to be able to scrape an NHL.com's play-by-play game sheet and insert it into a database for further analysis. I'd love to set this up in production for my own use, but also so that those without programming experience can download this dataset and analyze it using their tool of choice.For now, there are no plans to do any further modelling / processing of the data. However, I do plan on writing a seperate tool (or possibly extend this one) to take the scraped data, apply some transforms, and spit out new data that is easier to use in analysis tools.
### What's done
- The scraper can scrape a [game day](http://www.nhl.com/ice/scores.htm) page and find the IDs of all games on that page. This ID (in combination with the season descriptor) is used to find the game sheet.
- The scraper can scrape a game sheet and get the home and visiting teams' name, the venue, and the number in attendance.
- The scraper can parse the events from the game sheet.### What's left
- The ability to scrape a range of days.
- Storage of game / event information.
- The ability to remember where the scraper left off, so it can know which games it has already scraped, and which it needs to scrape.
- Validation of data being inserted.
- A command line interface that is cron-able.
- Anything else?### Contributing
I welcome any contributions that will make this scraper better. If you can make it easier to read or if you find a bug in my code, please create an issue or send me a PR. While performance tweaks aren't very high on my list of concerns, I also welcome PRs of those kind so long as they keep the codebase readable and resilient to structural changes in the NHL.com website.If you're sending me a PR:
- 1. Fork this repo;
- 2. Make commits to a feature branch; and,
- 3. Send me a PR.