Zhou Hao

Results 78 comments of Zhou Hao

嗯,这个可能是 xxx_ranking 的其他接口,之前用的比较少没有测试过。我抽空看看 如果有App上的相关请求URL,可以发给我参考下

Use content-type to determine the suffix name is better, although client/chrome is compatible, some libraries may still determine the file type based on the suffix name. Maybe we need a...

1. If exist in `content_type_mapping`, use the suffix 2. If not exist, use the url filename suffix (as default)

As you think, if we need to download the file and then determine the file type, it may not be suitable for putting together (the `download()` API has been released,...

Well, this seems to be a new feature of the web. AppAPI is an interface based on the iOS client. Are there similar features on the client?

没遇到过这个问题,看起来是Py3的证书问题,可以考虑换个代理试试。 理论上加`verify=False`和`check_hostname=False`就可以,但[也看到说无效的](https://stackoverflow.com/questions/33770129/how-do-i-disable-the-ssl-check-in-python-3-x)。如果这两个参数都传递给API了还是不行,可以考虑试试这个方案: ```py def init_poolmanager(self, *args, **kwargs): import ssl ssl_context = ssl.create_default_context() ssl_context.load_default_certs() kwargs['ssl_context'] = ssl_context return super(SslContextHttpAdapter, self).init_poolmanager(*args, **kwargs) ``` https://stackoverflow.com/a/67924139/2366194

requests的方法类似这样: ```py _REQUESTS_KWARGS = { 'proxies': { 'https': 'http://127.0.0.1:1087', }, 'verify': False, ‘check_hostname’: False, } api = PixivAPI(**_REQUESTS_KWARGS) print(api.login(_USERNAME, _PASSWORD)) ``` 第二个方法我也没有验证过,如果增加`check_hostname=False`到`_REQUESTS_KWARGS`也不奏效,可以考虑用Python2试试

Try call [`def user_bookmarks_illust(user_id, restrict='public', tag=None, req_auth=True):`](https://github.com/upbit/pixivpy/blob/ddf8489d33f669be983cdff4e65973445ec550da/pixivpy3/aapi.py#L102) with `tag`

You mean add a bookmark? https://github.com/upbit/pixivpy/blob/master/pixivpy3/aapi.py#L256

解析到 cloudflare 了,应该是没绕过。可以看看是哪个DNS返回的,把对应DNS屏蔽掉重新解析试试