Fix Facebook scraper returning strings instead of Items

This commit is contained in:
JustAnotherArchivist
2018-09-10 19:38:43 +02:00
parent 6b6ae3d33b
commit 0350ab0692

View File

@@ -23,7 +23,7 @@ class FacebookUserScraper(snscrape.base.Scraper):
if href.startswith(f'/{username}/'):
link = urllib.parse.urljoin(baseUrl, href)
if link not in yielded:
yield link
yield snscrape.base.URLItem(link)
yielded.add(link)
def get_items(self):