Giter Club home page Giter Club logo

danbooru-ruby-grabber's People

Contributors

xeron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

danbooru-ruby-grabber's Issues

Use JSON API

Use JSON API + rewrite code with low-level class for API.

[feature request]Добавление тегов в nepomuk

Привет!
Сейчас теги сохраняются отдельно в файл, но в состав KDE входит такая штука как nepomuk, которая поддерживает теги для файлов.
Было бы замечательно, если граббер мог качать картинки и сразу проставлять теги к ним, в идеале на выбор - например мне не нужны все теги, а только копирайты/персонажи/авторы.
Похожий функционал был реализован в Danbooru Client (http://kde-apps.org/content/show.php?content=114343) на питоне, но автор, похоже, забросил своё творение...

Failed download resume handling question

Downloading a large set of images (3000+) and hit a connection timeout. When I run the same command again to download, it starts redownloading all files (overwriting files already downloaded). The previously downloaded files appear in files.bbs.

Am I missing an argument to tell it to skip previously downloaded files?

Using defaults:

./danbooru.rb -b yandere -u userid -p password tag

[feature request]Загрузка изображений из пулов

Была бы очень полезной возможность скачивать изображения из пулов, указывая айди пула или, если это возможно реализовать, его название.
На всякий случай, чтобы пояснить о чем я, оставлю ссылку на список пулов на данбуру: http://danbooru.donmai.us/pool/index

Danbooru pools broken

Due to new API danbooru's pool getting is broken. New format (same for XML):

The base URL is GET /pools/$id.json where $id is the pool id.

Unknown file URLs for danbooru

As the above title says, this is mostly regarding banned artists, but also affects some other tags where I believe the API for danbooru doesn't give any image URL result. Would it be possible to fix this by grabbing the md5 from the API for a blocked post? Because if so the file URL is just that plus the file extension.

As an example here is a post from a banned artist: https://danbooru.donmai.us/posts/2438399 and the file url is just /data/5fd14d16134e9698fb1d7eeeadc2b81f.jpg. Alternatively I have no idea how you feel about this, but if you just look at the page HTML for a blocked post the "data-file-url" element contains the file URL as well which maybe you can use.

Create a gem

It will simplify installation process and usage. Worth to think about compatibility with people who use cloned repo.

Allow to set base dir

New option to set a base dir. That will allow people to download images into any location.

Image duplicates when tags change for an image

As said in the title, it seems like your script will download an image again if the tags for it changes, rather than just updating it. I observed this with yande.re only, so I've no idea if it affects other booru sites. I am using the storage dir option if that matters. It also makes a dupe symlink and entry in the files.bbs file.

Just an example image I found that had undergone a tag change and then got downloaded again: http://privatepaste.com/8c3ec5d562

Support special tags like "user:opai" or "vote:3:opai order:vote"

Currently it results in (at least on Windows):

C:\Users\Henry\Downloads\danbooru-ruby-grabber-master\danbooru-ruby-grabber-master>danbooru.rb -b konachan user:opai
Tags are user:opai.
C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:253:in `mkdir': Not a directory @ dir_s_mkdir - user:opai (Errno::ENOTDIR)
        from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:253:in `fu_mkdir'
        from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:227:in `block (2 levels) in mkdir_p'
        from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:225:in `reverse_each'
        from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:225:in `block in mkdir_p'
        from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:211:in `each'
        from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:211:in `mkdir_p'
        from C:/Users/Henry/Downloads/danbooru-ruby-grabber-master/danbooru-ruby-grabber-master/lib/booru/posts.rb:42:in `download_by_tags'
        from C:/Users/Henry/Downloads/danbooru-ruby-grabber-master/danbooru-ruby-grabber-master/danbooru.rb:106:in `<main>'

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.