[fapello] stop pagination on empty results (#7385)
This commit is contained in:
@@ -72,10 +72,13 @@ class FapelloModelExtractor(Extractor):
|
|||||||
if not page:
|
if not page:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
url = None
|
||||||
for url in text.extract_iter(page, '<a href="', '"'):
|
for url in text.extract_iter(page, '<a href="', '"'):
|
||||||
if url == "javascript:void(0);":
|
if url == "javascript:void(0);":
|
||||||
continue
|
continue
|
||||||
yield Message.Queue, url, data
|
yield Message.Queue, url, data
|
||||||
|
if url is None:
|
||||||
|
return
|
||||||
num += 1
|
num += 1
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user