[plurk] fix comment pagination
This commit is contained in:
@@ -53,7 +53,9 @@ class PlurkExtractor(Extractor):
|
||||
yield from info["responses"]
|
||||
if not info["has_newer"]:
|
||||
return
|
||||
data["from_response_id"] = info["responses"][-1]["id"]
|
||||
elif info["has_newer"] < 200:
|
||||
del data["count"]
|
||||
data["from_response_id"] = info["responses"][-1]["id"] + 1
|
||||
|
||||
@staticmethod
|
||||
def _load(data):
|
||||
|
||||
@@ -33,8 +33,8 @@ class WallhavenSearchExtractor(WallhavenExtractor):
|
||||
("https://wallhaven.cc/search?q=touhou"),
|
||||
(("https://wallhaven.cc/search?q=id%3A87"
|
||||
"&categories=111&purity=100&sorting=date_added&order=asc&page=3"), {
|
||||
"count": 5,
|
||||
"url": "d477b68a534c3416d506ae1f159b25debab64678",
|
||||
"pattern": r"https://w.wallhaven.cc/full/\w\w/wallhaven-\w+\.\w+",
|
||||
"count": "<= 10",
|
||||
}),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user