mgokg commited on
Commit
da8c651
·
verified ·
1 Parent(s): 7067274

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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()