Python script to extract historical hourly weather data from any personal weather station on Wunderground and between any two dates. The script scrapes the site and looks for the weather table to be loaded before extracting it.
- Python 3.6+ (for pyppeteer & asyncio)
- pandas
- pyppeteer
- BeautifulSoup 4
- nest-asyncio (for running the script in a web or GUI environment like Jupyter or Spyder)
- lxml
- Use Wundermap to find your PWS station ID (example: 'KILCHICA130')
- Enter start date on line 17 in 'YYYY-MM-DD' format
- Enter end date on line 18 in 'YYYY-MM-DD' format
- Enter station ID on line 19 between single quotes
- Set whether the script is run via CLI or in a web environment like Jupyter on line 12
- Weather data will be saved in individual csv files for each day (takes a few seconds per date)