Giter VIP home page Giter VIP logo

gelbooru_downloader's Introduction

Gelbooru Downloader

This script allows you to download images from Gelbooru based on specified tags.

Requirements

  • Python 3.x
  • requests library (pip install requests)

Usage

  1. Clone or download the downloader.py file.

  2. Create a file named agent.txt and add a list of user agents that the script will use for requests.

  3. Run the downloader.py script.

  4. Upon execution, the script will prompt you for:

    • Tags for image search
    • Starting page ID for the search
  5. The script will continuously download images from Gelbooru based on the provided tags, avoiding duplicates.

  6. Images will be saved in the output directory with associated tag information.

Notes

  • The script creates a downloaded.txt file to keep track of downloaded image IDs, avoiding re-downloading.

  • In case of a connection error to the Gelbooru API, the script will attempt to retry using a different user agent.

  • If an image fails to download, the script will log the failure.

  • If the output directory doesn't exist, the script will create it automatically.

  • To stop the script, use Ctrl+C to terminate the process.

Disclaimer

  • Respect copyright and usage rights when downloading and using images.

Troubleshooting

If you encounter issues or errors while using the script, feel free to create an issue or seek help.

gelbooru_downloader's People

Contributors

mistkeithy 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.