Skip to content

Weather web scraping script for my dad πŸπŸŒ¦πŸƒ

License

Notifications You must be signed in to change notification settings

Hornflakes/weather-scraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

weather-scraping

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. πŸ‡πŸŒ³πŸπŸ‘πŸŽπŸ’

C++ version πŸ”₯

What does it do?

  • extracts weather data from freemeteo.ro
  • exports the data into Excel

Setup

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:

  1. download Weather_Scraping.zip from Releases

    or copy what's inside the dist folder

  2. replace weather_data.xlsx with your own excel

    or use it (skip the next 2 steps)

  3. add the date (dd.mm.yyyy) after which you want to get data

  4. update config.xlsx

  5. run weather_script.bat and wait for the console window to close

  6. 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.