Closed mashirozx closed 4 years ago
比如:https://github.com/upbit/pixivpy/blob/e718dfe09f304807aaf9202d3ac37af8cf18e52b/pixivpy3/aapi.py#L179-L182
offset应该是代表第几副作品,比如每页是30张那么offset=0就是第一页,offset=30就是第二页(30-60)
@Rinacm 说得对。对于AAPI,一般不用手动设置offset,直接使用AppPixivAPI.parse_qs从服务器响应的next_url里就能提取到翻页用的参数,其中就会包括offset。
AppPixivAPI.parse_qs
next_url
了解了,谢谢二位
比如:https://github.com/upbit/pixivpy/blob/e718dfe09f304807aaf9202d3ac37af8cf18e52b/pixivpy3/aapi.py#L179-L182