upbit / pixivpy

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

Bug: Illust recommend without auth is not working (404) #340

Open MaikoTan opened 8 months ago

MaikoTan commented 8 months ago

Example

from pixivpy3 import *

api = AppPixivAPI()

r = api.illust_recommended(req_auth=False)

print(r)

It prints:

{'error': {'user_message': "Specified end-point doesn't exist", 'message': '', 'reason': '', 'user_message_details': {}}}
xiyihan0 commented 8 months ago

Well, it seems that the API which doesn't need authentication was deprecated:

        if req_auth:
            url = "%s/v1/illust/recommended" % self.hosts
        else:
            url = "%s/v1/illust/recommended-nologin" % self.hosts #Not working
MaikoTan commented 8 months ago

Hmmm. Is there any APIs alternatives could be used for recommandations without auth?