GithubHelp home page GithubHelp logo

nylonicious / danbooru-api-downloader Goto Github PK

View Code? Open in Web Editor NEW
15.0 0.0 6.0 23 KB

Python3 script to download images from https://konachan.com, https://yande.re/, https://danbooru.donmai.us/.

License: MIT License

Python 100.00%
danbooru yandere konachan downloader scraper python3 python

danbooru-api-downloader's Introduction

danbooru-api-downloader's People

Contributors

mrdew25 avatar nylonicious avatar

Stargazers

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

danbooru-api-downloader's Issues

Add file of names of downloaded files

Add these before the ClientSession

file = open(str(desired_path / parent_url) + ".ender", "r+")
downloadedFiles = file.read().split("\n")`
downloadedFiles.pop()

and use this for the download

if not picture_path.is_file() or picture_name not in downloadedFiles:
    await download(session, picture_url, picture_path, picture_name)
    file.write(picture_name + "\n")
    file.flush()

Add a Thread Option

I'm not really familiar with aiohttp but I do have to say, this program works really well.

I just got an error:
aiohttp.client_exceptions.ServerDisconnectedError

I think it is because of all the requests the API is receiving because that's what StackOverflow said but I could be wrong.

Anyways, I love this program! It works like a charm, most of the time.

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.