Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 724 Bytes

File metadata and controls

25 lines (19 loc) · 724 Bytes

Checking the weather seems fairly trivial: Open your web browser, click the address bar, type the URL to a weather website (or search for one and then click the link), wait for the page to load, look past all the ads, and so on.

Actually, there are a lot of boring steps you could skip, if you had a program that download the weather forecast and print it as plaintext.

libraries used-

  1. requests
  2. json
  3. sys

HOW TO USE THIS PROGRAM?

  1. In Windows:

    • Open cmd
    • Go to the file location using cd
    • Write :> python quickWeather.py location
    • Or you can even create a batch file :)
  2. In Linux:

    • Open terminal
    • Go to the file location using cd
    • Write :$ python3 quickWeather.py location