Guys this is a very cool stuff to check weather of any city in the world using python.

Just give it a try.......

 

import requests

from bs4 import BeautifulSoup

search = "weather in Bangalore"

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)