Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,9 +32,9 @@ def scrape_website(url):
|
|
32 |
response.raise_for_status()
|
33 |
soup = BeautifulSoup(response.text, 'html.parser')
|
34 |
content = {
|
35 |
-
'scraped_html': ' '.join(p.get_text() for p in soup.find_all('p', class_="sc-
|
36 |
-
'heute_überschrift': ' '.join(p.get_text() for p in soup.find_all('h1', class_="sc-
|
37 |
-
'heute_zsm': ' '.join(p.get_text() for p in soup.find_all('p', class_="sc-
|
38 |
}
|
39 |
return content
|
40 |
except Exception as e:
|
|
|
32 |
response.raise_for_status()
|
33 |
soup = BeautifulSoup(response.text, 'html.parser')
|
34 |
content = {
|
35 |
+
'scraped_html': ' '.join(p.get_text() for p in soup.find_all('p', class_="sc-8df4b824-0 iGqRWd")),
|
36 |
+
'heute_überschrift': ' '.join(p.get_text() for p in soup.find_all('h1', class_="sc-8df4b824-0 geJYKG")),
|
37 |
+
'heute_zsm': ' '.join(p.get_text() for p in soup.find_all('p', class_="sc-8df4b824-0 AwWvY"))
|
38 |
}
|
39 |
return content
|
40 |
except Exception as e:
|