Spaces:
Sleeping
Sleeping
Update other_function.py
Browse files- 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 |
-
|
97 |
|
98 |
-
return (
|
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
|