Python3 script to download all images from specified tag from https://konachan.com, https://yande.re/, https://danbooru.donmai.us/.
- Python 3.7+
- aiohttp
Simply input url for example https://konachan.com/post?tags=example_tag
+
Python3 script to download images from https://konachan.com, https://yande.re/, https://danbooru.donmai.us/.
License: MIT License
Python3 script to download all images from specified tag from https://konachan.com, https://yande.re/, https://danbooru.donmai.us/.
Simply input url for example https://konachan.com/post?tags=example_tag
+
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()
Here is the link that is formatted to work with the scraper that you have
https://gelbooru.com/index.php?json=1&page=dapi&s=post&q=index&tags=
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.