bcci commited on
Commit
ed4b796
·
verified ·
1 Parent(s): 4ef70ad

Update app.py

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