Skip to content

Commit

Permalink
Update internet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus authored Nov 15, 2024
1 parent 9da45f9 commit d53db73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g4f/gui/server/internet.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def scrape_text(html: str, max_words: int = None) -> str:
if select:
select.extract()
clean_text = ""
for paragraph in soup.select("p"):
for paragraph in soup.select("p, h1, h2, h3, h4, h5, h6"):
text = paragraph.get_text()
for line in text.splitlines():
words = []
Expand Down

0 comments on commit d53db73

Please sign in to comment.