Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,8 @@ def google_search(query):
|
|
16 |
# Holt den Inhalt der Webseite
|
17 |
response = requests.get(url)
|
18 |
soup = BeautifulSoup(response.text, 'html.parser')
|
19 |
-
first_div = soup.find('div', class_='MjjYud')
|
|
|
20 |
|
21 |
if first_div:
|
22 |
return first_div.text.strip()
|
|
|
16 |
# Holt den Inhalt der Webseite
|
17 |
response = requests.get(url)
|
18 |
soup = BeautifulSoup(response.text, 'html.parser')
|
19 |
+
#first_div = soup.find('div', class_='MjjYud')
|
20 |
+
first_div = soup.find('body')
|
21 |
|
22 |
if first_div:
|
23 |
return first_div.text.strip()
|