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

fullsync command added, netscape cookie support and more stuff #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PBXg33k
Copy link

@PBXg33k PBXg33k commented Oct 4, 2021

I added an extra command a while ago because i wanted to scrape the metadata for all galleries so i could hammer my own local db without getting banned. Therefor i added a fullsync command which will iterate through all galleries pages and filter on id to check if the gallery has already been indexed.

For (my own) convenience, i have added the cookiefile package as a dependency so i could easily export cookies from chrome in a netscape formatted file and use that (using cookies.netscape file).
The new fullsync command also uses the newly introduced uriCallInterval and startPage config keys.
uriCallInterval is the sleep timer in second between EACH http call and startPage is the offset from which page the scraping should be started, in case the script crashes on page 700 or something.

  • Splitted common sync logic into a basesync class for reuse.
  • Added fullsync command (with configurable sleep interval and page offset)
  • Added support for netscape cookie format

* Added fullsync command (with configurable sleep interval and page offset)
* Added support for netscape cookie format
@PBXg33k PBXg33k marked this pull request as ready for review October 4, 2021 16:09
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.

1 participant