Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Search API access delay between requests #1191

Closed
3 tasks done
mugi-jiichan opened this issue Nov 14, 2022 · 1 comment
Closed
3 tasks done

[Feature Request] Search API access delay between requests #1191

mugi-jiichan opened this issue Nov 14, 2022 · 1 comment

Comments

@mugi-jiichan
Copy link

mugi-jiichan commented Nov 14, 2022

Prerequisites

Description

Hi,

I'd like to request a short break between search API requests that return 0 images while processing on tag lists. While surfing on Pixiv, I've observed that the site is temp banning the IP if there are too many API requests at once which may be caused by long tag lists and a narrow start and end date time frame.

Same happens if I run a second instance, and the first instance processes empty search API returns. If I don't intervene and pause the script, it's possible to have the IP temp banned.

I think it would suffice to reuse the downloadDelay value in the config.ini.

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected behavior:

Just a short timeout before the next request, either download or next search API request.

Actual behavior:

PU continues with zero delay.

Log file: [Attach the pixivutil.log file in the application folder, recommended to delete the old file, reproduce the issue, and upload the newly generated file here]

Versions

20221029

Nandaka added a commit that referenced this issue Nov 15, 2022
@mugi-jiichan
Copy link
Author

Hi,

sorry, I couldn't test it earlier. Works perfectly for me with the current code.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants