Xdynix

Results 37 comments of Xdynix

I’ve encountered the same issue — the reformatted version briefly appears and then disappears. Disabling **`Use Import Optimizer`** resolves the problem. From the logs, here’s what I see: --- **Without...

你的代理能正常访问Pixiv的图片服务器(i.pximg.net)吗?这看起来像你的网络问题,不是库的问题。

(403那是能连上,和Connection timeout to host是两码事了) 这个URL不能直接访问,需要添加对应的`Referer`。如: ```commandline curl -H 'Referer: https://app-api.pixiv.net/' https://i.pximg.net/c/600x1200_90/img-master/img/2025/04/25/15/09/49/129679698_p0_master1200.jpg ``` 或者 ```python import requests url = 'https://i.pximg.net/c/600x1200_90/img-master/img/2025/04/25/15/09/49/129679698_p0_master1200.jpg' with ( requests.get(url, headers={'Referer': 'https://app-api.pixiv.net/'}, stream=True) as response, open('output.jpg', 'wb') as...

参考:https://github.com/upbit/pixivpy/blob/master/download_illusts.py

> 你好,想请问一下用户名和密码登录失败要怎么办? #158

If somehow the illustration ID is invalid or deleted, the response of `illust_detail()` will looks like: ```python res = api.illust_detail(9999999999) print(res) # {'error': {'user_message': 'Page not found', 'message': '', 'reason':...

无端猜测有可能是请求频率太高触发了速率限制,那段时间返回的都是错误结果。可以考虑在请求之间加一些几秒的暂停。