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

Limit scraping #1592

Merged
merged 2 commits into from
Jan 17, 2024
Merged

Limit scraping #1592

merged 2 commits into from
Jan 17, 2024

Conversation

toshski
Copy link
Contributor

@toshski toshski commented Jan 17, 2024

This change allows users to only scrape the first page of the scene lists.

Some sites are now requiring over 50 pages to be scraped to check the scene list, some go over 100. With only a couple of exceptions we scrape all sites in most recent order, so if you scrape daily and are up to date with scenes on a site, you really only need the first page of scenes.

This change allows users to specify if they would like to scrape the whole site (the default) or just the first page of scenes. The user can choose to scrape the first page for some sites and the lot for others.

Benefits:

  • scraping is significantly faster
  • lees likely of running into been locked out (probably more of a future problem)
  • cuts unnecessary traffic for sites

If a user wants to refresh some old scenes, they should switch back a full scrape and the change back when done.

In the exceptions where scraping cannot be controlled by most recent first, the scraper ignores the setting.

@crwxaj crwxaj merged commit 10e64a0 into xbapps:master Jan 17, 2024
1 check passed
@toshski toshski deleted the Limit_Scraping branch January 17, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants