Skip to main content

Keep downloaded booru searches up-to-date, similar to Danbooru subscriptions.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lunasync-0.1.4.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

lunasync-0.1.4-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file lunasync-0.1.4.tar.gz.

File metadata

  • Download URL: lunasync-0.1.4.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

File hashes

Hashes for lunasync-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5a08f1bf09c2225fbfdaa9745049165ad65c55b9f2a61d404737bd013a0760e9
MD5 83d1d57799316615f89e47a1a53bab2c
BLAKE2b-256 bcdc029e73cfab14e857ac6970ce65ac20f50aa22e69c83aa962c99f393cd086

See more details on using hashes here.

File details

Details for the file lunasync-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: lunasync-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

File hashes

Hashes for lunasync-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 82582620958b523dae2e98abc544f227ae69ef0047d77f7271910783adf647a8
MD5 1bbf1fd347b20a547b081b7e828d08d7
BLAKE2b-256 72e5aec1ab07b79d754b6e96a8dde6410db5cf447fd9bced84f8dea8697c25c3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page