Skip to content

Simple BeautifulSoup scraper for Google weather forecast data, including hourly precipitation and wind forecast for a week.

License

Notifications You must be signed in to change notification settings

lfhohmann/google-weather-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Weather Forecast Scraper

A simple BeautifulSoup scraper for Google/(weather.com) weather forecast data.

Features

  • Automatic units detection and conversion.
  • Extracts current weather data, containing "Weather Condition", "Temperature", "Humidity", "Precipitation Probability" and "Wind Speed".
  • Extracts the summary of the next 8 days (including the current day), containing "Weather Condition", "Day Name", "Minimum Temperature" and "Maximum Temperature" for each day.
  • Extracts the wind data for the next 15 days with 3 hour intervals, containing "Wind Speed", "Wind Direction", and "Wind Bearing".
  • Extracts a hourly forecast for the next 15 days, containing "Temperature", "Humidity", "Precipitation Probability", "Weather Condition" and "Wind Speed".

Units

The main function get_forecast() accepts an optional output_units parameter which has to be a dictionary with the following structure:

  • temp:
    • c for Celsius
    • f for Farenheit
  • speed:
    • mph for Miles per Hour
    • km/h for Kilometers per Hour

About

Simple BeautifulSoup scraper for Google weather forecast data, including hourly precipitation and wind forecast for a week.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages