Neurolingua commited on
Commit
880b9c8
1 Parent(s): 57f2875

Update other_function.py

Browse files
Files changed (1) hide show
  1. other_function.py +2 -2
other_function.py CHANGED
@@ -93,9 +93,9 @@ def get_weather(city):
93
  r = requests.get(f'https://www.google.com/search?q=weather+in+{city}')
94
 
95
  soup=BeautifulSoup(r.text,'html.parser')
96
- temperature=soup.find('div',attrs={'class':'BNeawe iBp4i AP7Wnd'}).text
97
 
98
- return (temperature)
99
 
100
 
101
  from zenrows import ZenRowsClient
 
93
  r = requests.get(f'https://www.google.com/search?q=weather+in+{city}')
94
 
95
  soup=BeautifulSoup(r.text,'html.parser')
96
+ temp = soup.find('div', class_='BNeawe iBp4i AP7Wnd').text
97
 
98
+ return (temp)
99
 
100
 
101
  from zenrows import ZenRowsClient