upbit / pixivpy

Pixiv API for Python
https://pypi.org/project/PixivPy3/#files
The Unlicense
1.79k stars 149 forks source link

请教一下请求里面的offset参数怎么用? #110

Closed mashirozx closed 4 years ago

mashirozx commented 4 years ago

比如:https://github.com/upbit/pixivpy/blob/e718dfe09f304807aaf9202d3ac37af8cf18e52b/pixivpy3/aapi.py#L179-L182

dylech30th commented 4 years ago

offset应该是代表第几副作品,比如每页是30张那么offset=0就是第一页,offset=30就是第二页(30-60)

Xdynix commented 4 years ago

@Rinacm 说得对。对于AAPI,一般不用手动设置offset,直接使用AppPixivAPI.parse_qs从服务器响应的next_url里就能提取到翻页用的参数,其中就会包括offset。

mashirozx commented 4 years ago

了解了,谢谢二位