Skip to content

Commit bfb09c6

Browse files
committed
Weather Forcasting Utility Added v1
1 parent 9f66a71 commit bfb09c6

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

Weather Forcasting/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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)

Weather Forcasting/code.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import requests
2+
3+
city = input("\nEnter 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...")

0 commit comments

Comments
 (0)