Spaces:
Running
Running
Charbel Malo
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def scrape_visible_text_from_url(url, query_selector=None, email=None, password=
|
|
39 |
header_text = header_content.get_text() if header_content else ""
|
40 |
|
41 |
# Extract paragraph content
|
42 |
-
paragraph_content = soup.
|
43 |
paragraph_text = " ".join([p.get_text() for p in paragraph_content])
|
44 |
|
45 |
text_content = f"{header_text}\n\n{paragraph_text}"
|
|
|
39 |
header_text = header_content.get_text() if header_content else ""
|
40 |
|
41 |
# Extract paragraph content
|
42 |
+
paragraph_content = soup.body
|
43 |
paragraph_text = " ".join([p.get_text() for p in paragraph_content])
|
44 |
|
45 |
text_content = f"{header_text}\n\n{paragraph_text}"
|