Update Scraper.py
Browse files- Scraper.py +1 -1
Scraper.py
CHANGED
|
@@ -16,7 +16,7 @@ def Scrap(url):
|
|
| 16 |
article.download()
|
| 17 |
article.parse()
|
| 18 |
|
| 19 |
-
if not article.text:
|
| 20 |
print("Can't Scrap this article link")
|
| 21 |
return None
|
| 22 |
|
|
|
|
| 16 |
article.download()
|
| 17 |
article.parse()
|
| 18 |
|
| 19 |
+
if not article.text or not article.title:
|
| 20 |
print("Can't Scrap this article link")
|
| 21 |
return None
|
| 22 |
|