Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/racpast/nsfwdownloader
A program that can download a large number of images of a certain type from a given database, used for scraping images to build a personal image hosting service.
https://github.com/racpast/nsfwdownloader
Last synced: about 6 hours ago
JSON representation
A program that can download a large number of images of a certain type from a given database, used for scraping images to build a personal image hosting service.
- Host: GitHub
- URL: https://github.com/racpast/nsfwdownloader
- Owner: racpast
- License: gpl-2.0
- Created: 2024-11-17T07:34:29.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-28T19:26:07.000Z (about 2 months ago)
- Last Synced: 2024-11-28T19:35:33.450Z (about 2 months ago)
- Language: Python
- Homepage: https://github.com/racpast/NSFWDownloader
- Size: 15.1 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **NSFW** Downloader
A program that can download **a large number of images of a certain type** from **a given database**, used for scraping images **to build a personal image hosting service**.
This project **references** the database **from** [**Mabbs ยท pixiv-index**](https://github.com/Mabbs/pixiv-index). When you run the program, **it will automatically download the latest database via the agent specified by the** `proxy_url` **variable**.
Run `DownloadNSFW.py` in the same directory as the folder containing the json file to start the download. **If the program runs properly**, it will output logs in the console. Unparsed json files are stored by default in the folder specified by the `data_folder` variable. **If the image specified in a json file is successfully downloaded**, the json file is moved to the folder specified by the `data_downloaded_folder` variable. **Otherwise**, it will be moved to the folder specified by the `data_error_folder` variable. **All downloaded images are moved to the folder specified by the** `download_folder` **variable**.
In some cases, you may need to **change the address of the Pixiv image reverse proxy** manually. You can try using `https://i.pixiv.re`, but it seems that this proxy **will fail after receiving a constant flood of requests**, so the default `https://i.yuki.sh` is **the most stable** in my opinion. (I once ran a test with about **37,000** requests.)
The following is a table of **default values**:
| variable | default value |
| ------- | ------- |
| data_folder | data |
| data_error_folder | data_error |
| download_folder | download |
| data_downloaded_folder | data_downloaded |
| pixivimgrp | https://i.yuki.sh |
| proxy_url | https://ghproxy.cc/ |## ๐ **Have fun!**