[4chanarchives] add end condition for 'board' extractor (#4012)

This commit is contained in:
Mike Fährmann
2023-05-06 20:52:45 +02:00
parent 1406f7125f
commit 7eadcbea70

View File

@@ -130,7 +130,10 @@ class _4chanarchivesBoardExtractor(Extractor):
url = "{}/board/{}/{}".format(self.root, self.board, pnum)
page = self.request(url).text
thread = None
for thread in text.extract_iter(page, needle, '"'):
yield Message.Queue, thread, data
if thread is None:
return
pnum += 1