Arafath10 commited on
Commit
9f12486
1 Parent(s): 277c9aa

Update scraper.py

Browse files
Files changed (1) hide show
  1. scraper.py +1 -1
scraper.py CHANGED
@@ -106,7 +106,7 @@ class Scraper:
106
  links = Scraper.get_links(soup)
107
  text_content = Scraper.get_text_content(soup)
108
 
109
- if not links:
110
  print("Running alternative scrapper")
111
  links, text_content = await Scraper.power_scrapper_2(url)
112
 
 
106
  links = Scraper.get_links(soup)
107
  text_content = Scraper.get_text_content(soup)
108
 
109
+ if not text_content:
110
  print("Running alternative scrapper")
111
  links, text_content = await Scraper.power_scrapper_2(url)
112