b3yc0d3 / rule34Py

python api wrapper for rule34.xxx rest api
https://pypi.org/project/rule34Py/
GNU General Public License v3.0
24 stars 6 forks source link

How do you get any image after the 100th in a search? #3

Closed Proxagonal closed 2 years ago

Proxagonal commented 2 years ago

I tried searching for a particular tag:

search = r34.search(["miruko"], limit=100, page_id=1)

Yet the limit can only go up to 100, and the page id does not change in any way the resulting links I get from the search. How do I get any image other than the first 100?

Thanks.

b3yc0d3 commented 2 years ago

yeah it is possible to get more then 100 results per search. they have uped the max. from 100 to 1000, some where at the ned of last year (august 2021 or so). i've fixed it, sorry for the inconvenience

Proxagonal commented 2 years ago

It's okay. Any way to get more than that? even if it's image by image? I just wish to find all results for a certain search.

Also, what is the usage of page_id? Thanks.

b3yc0d3 commented 2 years ago

you can get more then 1000 results. to do so you need to set the page_id (aka page number) to page X, if the page doesn't exist it should return an empty list. sadly the rule34.xx api doesn't return how many pages exists. so the page_id is the page number