Coder Social home page Coder Social logo

mirukana / lunasync Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 38 KB

Download and keep in sync tag searches from Danbooru-based sites, similar to Danbooru tag subscriptions/saved searches.

License: GNU Lesser General Public License v3.0

Makefile 7.33% Python 92.67%
booru danbooru safebooru api image ugoira anime cli terminal scrap saved tag search filter download sync lunakit lunafind

lunasync's Introduction

lunasync

PyPI downloads PyPI version PyPI pyversions

Use lunafind to download and keep in sync tag searches from Danbooru-based sites, similar to Danbooru tag subscriptions/saved searches.

Searches are listed in a simple commented CSV file (see --print-config-path).
Can be easily used with cron for automatic scheduling.

Features

  • Full and incremental syncs; incremental stops downloading after reaching the last post that was downloaded in a previous run
  • Fast multithreaded downloads with lunafind; 8 downloads in parallel by default
  • Can sync all or only searches with a specific labels
  • Return the total number of downloaded posts

Command line usage

After adding some searches to the config file, simply doing lunasync will synchronize all searches in the current directory.
A full sync will be taken for a search if this is the first time, else incremental will be used. See lunasync --help for all options.

Python usage

    import lunasync
    lunasync.sync()

See help(lunasync.sync) for parameters.

Installation

Requires Python 3.6+ and pip (for automatic easy install).
Tested on GNU/Linux and Windows 7, probably works on OSX and other POSIX systems.
As root:

    pip3 install -U lunasync

lunasync's People

Contributors

mirukana avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

majoramn

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.