Skip to content

Instantly share code, notes, and snippets.

@JayantGoel001
Created June 14, 2021 02:58
Show Gist options
  • Save JayantGoel001/b3176d9e543a0647a84d6f8ecddc7a9e to your computer and use it in GitHub Desktop.
Save JayantGoel001/b3176d9e543a0647a84d6f8ecddc7a9e to your computer and use it in GitHub Desktop.
Forecasting Weather using requests and wttr
import requests
city = input("Enter The Name of City:\n")
url = 'https://wttr.in/' + city
response = requests.get(url)
print(response.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment