bcci commited on
Commit
5dc46f9
·
verified ·
1 Parent(s): e4bb89b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,8 +31,8 @@ async def scraper(url):
31
 
32
  async def text_scraper(url):
33
  """Fetches HTML content using AsyncFetcher and than extract text."""
34
- html = await async_fetcher.get(url).get_all_text()
35
- return re.sub(r'\s+', ' ', re.sub(r'\n+', ' ', html)).strip()
36
 
37
 
38
  async def convert_html_to_md(html):
 
31
 
32
  async def text_scraper(url):
33
  """Fetches HTML content using AsyncFetcher and than extract text."""
34
+ html = await async_fetcher.get(url)
35
+ return re.sub(r'\s+', ' ', re.sub(r'\n+', ' ', html.get_all_text())).strip()
36
 
37
 
38
  async def convert_html_to_md(html):