Spaces:
Sleeping
Sleeping
Update scraper.py
Browse files- 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
|
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 |
|