Skip to content

A tiny bash script to scrape the windguru date UI for your user (via cookie-id)

License

Notifications You must be signed in to change notification settings

jeremysolarz/windguru-date-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

windguru-date-cli

A tiny Pyhton script to scrape the windguru date UI for your user (via cookie-id)

Prerequisite for using this script

  1. Open your browser and navigate to https://www.windguru.cz/
  2. Login to Windguru.cz via the bottom right login button e.g. via Google Single-Sign-On
  3. Open one of the forecast pages for a spot in your browser e.g. https://www.windguru.cz/43
  4. Open your Developer Console to extract the idu and login_md5 from the cookie e.g. for Chrome in Mac ⌥ + ⌘ + J (see example image below for another spot with number 559365)
    1. Go to the Network tab
    2. Reload the page
    3. Select the second entry in the list called like the number of your spot e.g. 43
    4. Go to the Cookies detail tab
    5. Search for idu and login_md5 and copy it
  5. Run the script as shown below with your idu and login_md5 as parameters

idu extraction via Chrome Developer Tools

How to run this script

The easiest way to run the script is via Docker (see also the provided Dockerfile)

Build the Docker container

 docker build -t windguru-date-cli .

Run the Docker container

You need to share a folder to generate the images.

  docker run -it -v $(pwd)/generated:/app/generated windguru-date-cli --idu <your-idu> --login_md5 <your-login_md5> \
    --spots "Tarifa" \
    --spots "El Gouna" \
    --month-from 11 \
    --day-from 28 \
    --month-to 12 \
    --day-to 5 \
    --years 2018 \
    --years 2019 \
    --years 2020 \
    --years 2021

Options of this script

You can call the command with different parameters.

Use: python app.py --help for a complete description.

As an example see:

python app.py --idu <your-idu> --login_md5 <your-login_md5> \
    --spots "Tarifa" \
    --spots "Essaouira" \
    --month-from 11 \
    --day-from 28 \
    --month-to 12 \
    --day-to 5 \
    --years 2018 \
    --years 2019 \
    --years 2020 \
    --years 2021

As a visual example (!caution login_md5 is missing):

Tool run-through as gif

About

A tiny bash script to scrape the windguru date UI for your user (via cookie-id)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published