diff --git a/scripts/weather.py b/scripts/weather.py new file mode 100644 index 0000000..4c467dd --- /dev/null +++ b/scripts/weather.py @@ -0,0 +1,17 @@ +import requests +from bs4 import BeautifulSoup + +city = input("Enter City Name: ") + +search = 'weather in ' + city + +url = f'https://www.google.com/search?&q={search}' + +r = requests.get(url) + +s = BeautifulSoup(r.text,"html.parser") + +update = s.find("div",class_="BNeawe").text + +print(update) +