I want to scrape data from NOAA (https://gml.noaa.gov/grad/solcalc/). The data I want to get is sunrise and sunset timings for various counties of the US in the last 3 years. I have the coordinates of those counties. Now the problem which I am facing is I don't know how can I use those coordinates and set time frame to 3 years, while scraping the site such that i don't have to manually specify it each time.
I am using python for scraping.
**I need data in the following format:
latitude | Longitude | year | Month | day | Sunrise | sunset**
I am new to programming I tried available methods listed on web, but nothing served my purpose.
You can use the
table.php
page to get your data and read them with Pandas. This php script need 3 parameters:year
,lat
andlon
.Output:
Note: if you prefer
Month
as number, use: