This repo contains a weather web scraping python script (code and .bat) I made for my dad.
He records and analyzes weather data for our orchard. ππ³ππππ
- extracts weather data from freemeteo.ro
- exports the data into Excel
Dev:
Make sure the excel files are in the same folder from which you run the script (be it .py or .bat).
Β Β Β Β Β Β Install packages: pip install -r reqs.txt
Β Β Β Β Β Β Compile to .exe: pyinstaller weather_script.py
User:
-
download
Weather_Scraping.zip
from Releasesor copy what's inside the
dist
folder -
replace
weather_data.xlsx
with your own excelor use it (skip the next 2 steps)
-
add the date (dd.mm.yyyy) after which you want to get data
-
update
config.xlsx
-
your excel name
-
your sheet name
-
the index of the first (date) column:
column number - 1
-
-
run
weather_script.bat
and wait for the console window to close -
PROFIT πππ
The CA certificate for the data request can expire. In that case, you can replace it.
The certificate is app/certifi/cacert.pem
. You can download certificates here.