Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 588 Bytes

backend.md

File metadata and controls

12 lines (8 loc) · 588 Bytes

Back End Documentation

We ScrapeParseTransformUpload.

Scrape

I thought NBA data would be easily available but it was not. I ended up just scraping Basketball Reference. It is one request a day, so it is not a lot of request on their server. This was easy using cheerio.

Parse

Parsing was pretty easy too. I just needed to loop through HTML tables and request the data.

Transform

Converting an array of matches into a tree was kind of hard. Look at the convertToTree() method in scraper.