File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ # Weather Forecasting
2+
3+ ## Description
4+ This snippet of code will show city weather forcasting update for next 3 days.
5+
6+ ## Requirements
7+
8+ ` $ pip install requests `
9+
10+ ## Steps To Execution
11+ - Fork this repo and navigate to ShortenLinks folder
12+ - Run this code.py ` $ python code.py `
13+ - Enter the city name for which you need to know weather forcasting.
14+ - Boom !!! you will see beautiful summary of weather forcasting for next 3 days of inputed city name.
15+
16+ ## Code Output
17+
18+ ![ op] ( https://user-images.githubusercontent.com/52918207/123046085-4ca3b480-d419-11eb-87a6-0f0b31db2157.png )
Original file line number Diff line number Diff line change 1+ import requests
2+
3+ city = input ("\n Enter the city name : " )
4+ url = "https://wttr.in/{}" .format (city )
5+ try :
6+ res = requests .get (url )
7+ print (res .text )
8+ except :
9+ print ("Error occure Please try again later..." )
You can’t perform that action at this time.
0 commit comments