Skip to content
Snippets Groups Projects
Select Git revision
  • 4d38c5bfee6cad8d7a0971abc93521e8b0f96b68
  • master default protected
2 results

chimet-scraper

Alois Klink's avatar
Alois Klink authored
Before, the CSV files jumped to using DATE as a column to using Date.
4d38c5bf
History
Name Last commit Last update
.gitignore
LICENSE
Pipfile
README.md
chimet-scraper.py

chimet-scraper

Scraper for MET data from chimet.co.uk.

Currently supports downloading data from:

The scraper currently makes one request per second, which means it takes about 1 hour to download all of the historic data for one location.

Requirements

This program requires Python3, python-dateutil, pandas, and tqdm. These can be installed via:

pip3 install python-dateutil pandas tqdm

Or, if you use pipenv, you can use the following to install from the Pipfile.

pipenv install

Running

Run the program with:

python3 chimet-scraper.py

If you are using pipenv, please run the following instead:

pipenv run python3 chimet-scraper.py

This will download all the weather data from Southampton, Bramble, and Chichester, and cache them into a cache/ folder. Then, it will be combined into one big .csv file in the output/ folder.

Help

Please run the following to view help:

python3 chimet-scraper.py --help