Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mirukana/lunasync
Download and keep in sync tag searches from Danbooru-based sites, similar to Danbooru tag subscriptions/saved searches.
https://github.com/mirukana/lunasync
anime api booru cli danbooru download filter image lunafind lunakit safebooru saved scrap search sync tag terminal ugoira
Last synced: 20 days ago
JSON representation
Download and keep in sync tag searches from Danbooru-based sites, similar to Danbooru tag subscriptions/saved searches.
- Host: GitHub
- URL: https://github.com/mirukana/lunasync
- Owner: mirukana
- License: lgpl-3.0
- Created: 2018-11-10T00:39:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-21T00:18:28.000Z (about 6 years ago)
- Last Synced: 2024-04-25T19:20:48.554Z (9 months ago)
- Topics: anime, api, booru, cli, danbooru, download, filter, image, lunafind, lunakit, safebooru, saved, scrap, search, sync, tag, terminal, ugoira
- Language: Python
- Homepage:
- Size: 37.1 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# lunasync
[![PyPI downloads](http://pepy.tech/badge/lunasync)](
http://pepy.tech/project/lunasync)
[![PyPI version](https://img.shields.io/pypi/v/lunasync.svg)](
https://pypi.org/projects/lunasync)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/lunasync.svg)](
https://pypi.python.org/pypi/lunasync)Use [lunafind](https://github.com/mirukan/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
```python3
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:```sh
pip3 install -U lunasync
```