Charbel Malo commited on
Commit
bedee8a
·
verified ·
1 Parent(s): 00214e2

Update app.py

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