Scrape weather forecast information from https://weather.com and present it in a terminal
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
weatherterm
.gitignore
readme.md
requirements.txt
requirements_dev.txt

readme.md

Weather Application

Weather request

Scrape weather forecast information from https://weather.com and present it in a terminal.

Project of the book Python Programming Blueprints

Install

pip install -r requirements.txt

pip install -r requirements_dev.txt

It requeres PhantomJS; you can download it from: http://phantomjs.org/download.html

After downloading it, extract the contents inside the root project directory and rename the folder to phantomjs.

Today example

python -m weatherterm -u Fahrenheit -a SWXX2372:1:SW -p WeatherComParser -td

   33°
    High 0° / Low 22° (Sunny)
    Wind: 46% / Humidity: ENE 7 mph 

Five days examples

python -m weatherterm -u Fahrenheit -a SWXX2372:1:SW -p WeatherComParser -5d

    >> Tonight MAR 30
        High 2° / Low 2° (Mostly Clear)
        Wind: NNE 7 mph  / Humidity: 70%

    >> Sat MAR 31
        High 39° / Low 24° (Partly Cloudy)
        Wind: ENE 7 mph  / Humidity: 55%

    >> Sun APR 1
        High 37° / Low 27° (Cloudy)
        Wind: NE 13 mph  / Humidity: 73%

    >> Mon APR 2
        High 38° / Low 22° (AM Snow Showers)
        Wind: NNW 17 mph  / Humidity: 62%

    >> Tue APR 3
        High 42° / Low 27° (Partly Cloudy)
        Wind: WSW 7 mph  / Humidity: 48%

    >> Wed APR 4
        High 42° / Low 34° (Cloudy)
        Wind: SE 9 mph  / Humidity: 73%

For the weekend

python -m weatherterm -u Fahrenheit -a SWXX2372:1:SW -p WeatherComParser -w

    >> Sat MAR 31
        High 39° / Low 24° (Partly Cloudy)
        Wind: ENE 7 mph  / Humidity: 55%

    >> Sun APR 1
        High 37° / Low 27° (Cloudy)
        Wind: NE 13 mph  / Humidity: 73%

For help

python -m weatherterm --help