[belazon] fix starting from a specific page
with the default '"order-posts": "desc"'
This commit is contained in:
@@ -114,7 +114,7 @@ class BellazonExtractor(Extractor):
|
||||
def _pagination_reverse(self, base, pnum=None):
|
||||
base = f"{self.root}{base}"
|
||||
|
||||
url = f"{base}/page/9999/" # force redirect to highest page number
|
||||
url = f"{base}/page/{'9999' if pnum is None else pnum}/"
|
||||
with self.request(url) as response:
|
||||
parts = response.url.rsplit("/", 3)
|
||||
pnum = text.parse_int(parts[2]) if parts[1] == "page" else 1
|
||||
|
||||
Reference in New Issue
Block a user