GithubHelp home page GithubHelp logo

pixiv-bookmarks-sync's Introduction

Pixiv Bookmarks Sync

A utility to incrementally sync personal (or other user's) Pixiv illustration bookmarks to sqlite db and original images to local.

Dependencies

Usage

  • Download files
  • Install dependencies
pip install -r requirements.txt
  • Change _USERID in pixiv_collection_main.py to the Pixiv user ID you want to sync. Change _USESNI, _USERNAME, _PASSWORD and interval parameters above as needed.
  • To run once, use
python pixiv_collection_main.py
  • To deploy it in screen, etc. to run daily (on a server, for example), use
python platform_module.py

You can type help when program runs.

Miscellaneous

  • Remember to respect the original author. Don't use image without authorization or proper citations.
  • The synchronization is incremental, which means database entry and illustration(s) of a deleted bookmark won't be deleted.
  • Also, we assume that ALL new bookmarks are before ALL recorded bookmarks (which is the natual behavior of Pixiv). But if you unmark A, mark B and C, and then remark A, B and C will be missed since the program encounter A and assume that all later bookmarks have been recorded. You can comment the if block at about line 43 to disable this feature.
  • Illustration images will only be download once. Moving, renaming or deleting local image files won't result in redownloading.
  • Frequent requests to Pixiv may result in blocking of IP. Use at your own risk.
  • To decrease the frequency of web requesting, several intervals are set between requests of webpages or illustrations, such as _SYNCINTERVAL, _DOWNLOADINTERVAL and _RETRYINTERVAL. See comments in pixiv_collection_main.py. Change it as you need.
  • If it takes long to download images, you may want to put it into background using screen, etc.

pixiv-bookmarks-sync's People

Contributors

liuzikai avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.