calblueprint / ace-ny

4 stars 0 forks source link

[feat] Connect NYSERDA API and Download Data from NYISO #14

Closed deenasun closed 2 days ago

deenasun commented 6 days ago

What's new in this PR

Description

Created api/webscraper/utils module:

Created api/webscraper/nyserda_scraper.py file:

Created api/webscraper/scraper.py file:

How to review

Standard procedure

git fetch origin deenasun/10-feat-connect-nyserda-api-and-download-data-from-nyiso
git checkout deenasun/10-feat-connect-nyserda-api-and-download-data-from-nyiso

NOTE: This function to parse and filter the data for the small solar projects NYSERDA data set makes calls to our Google Maps API! Don't run this file very frequently unless needed---you can also check the data already inside nyserda_large.json and nyserda_small.json. To check if the scrapers for the NYSERDA data are working, you can run this command in your terminal:

python api/webscraper/nyserda_scraper.py

This will dump data into the nyserda_large.json and nyserda_small.json files inside the api/webscraper directory! If you want to see it in action, you can delete the data in there and run the command above and the json files should be repopulated.

If you run into any issues with dependencies, you may need to download certain python packages such as:

Run this command in your terminal:

pip install requests

for each of the needed dependencies!

Next steps

Relevant links

Online sources

Related PRs

CC: @itsliterallymonique