[tiktok] extract more story item list pages (#8932)
* [tiktok] extractor more story item list pages * [tiktok] invert hasMore logic
This commit is contained in:
@@ -867,7 +867,9 @@ class TiktokItemCursor(TiktokPaginationCursor):
|
|||||||
# item list isn't in the response, the extraction was going to fail
|
# item list isn't in the response, the extraction was going to fail
|
||||||
# anyway.
|
# anyway.
|
||||||
self.cursor += len(data[self.list_key])
|
self.cursor += len(data[self.list_key])
|
||||||
return not data.get("hasMore", False)
|
if "hasMore" in data:
|
||||||
|
return not data["hasMore"]
|
||||||
|
return not data.get("HasMoreAfter", False)
|
||||||
|
|
||||||
|
|
||||||
class TiktokPaginationRequest:
|
class TiktokPaginationRequest:
|
||||||
|
|||||||
Reference in New Issue
Block a user