Python library and CLI for scraping images from rule34.gg
Project description
🕷️ scraping34
A lightweight and reusable Python library + CLI tool for scraping images from rule34.gg.
✨ Features
- 📦 Simple Python API
- 💻 Full CLI support
- 🖼️ Automatic image conversion
- ⚡ Fast hentai downloads (videos and photos)
- 🧩 Built with clean and modular architecture
- 🌍 Cross-platform support:
- Windows
- Linux
- macOS
- Android (Termux)
📥 Installation
Install from PyPI
pip install scraping34
🚀 CLI Usage
To scrape a photo:
scraping34 -c="tsunade" -o="hentai.jpg" -m="photo"
To scrape a video:
scraping34 -c="hinata" -o="hinata.mp4" -m="video"
🐍 Python Library Usage
Basic example:
from scraping34 import Scraping34
scraper = Scraping34(
character="tsunade naruto",
output_file="hentai.jpg",
output_media="photo"
)
result = scraper.run()
print(result)
📘 API Reference
Scraping34(character, output_file)
Creates a new scraper instance.
Parameters
| Parameter | Type | Description |
|---|---|---|
character |
str |
Character/tag to search |
output_file |
str |
Output image filename |
output_media |
str |
output media format (video or photo) |
▶️ .run()
Executes the scraping pipeline:
Returns
str
Example:
"[SUCCESS] Download completed: hentai.jpg"
🖼️ Supported Output Formats
.jpg.jpeg.png.webp.gif.bmp
Example:
scraping34 -c "rem" -o rem.webp
📱 Android / Termux Support
scraping34 works on Android using Termux.
Install dependencies
pkg update
pkg install python
pip install scraping34
Usage
scraping34 -c "mikasa" -o mikasa.jpg
🧪 Development Installation
Clone repository:
git clone https://github.com/nullbyteSec1/scraping34
Enter project folder:
cd scraping34
Install dependencies:
pip install -r requirements.txt
Run locally:
python scraping34.py -c "rem" -o rem.jpg
📦 Dependencies
httpxbeautifulsoup4pillow
⚠️ Disclaimer
This project is intended for educational and research purposes only.
Users are responsible for complying with local laws and the terms of service of accessed websites.
📄 License
MIT License © nullbyteSec1
⭐ Contributing
Pull requests, issues and suggestions are welcome.
If you like the project, consider leaving a star ⭐
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scraping34-2.0.0.tar.gz.
File metadata
- Download URL: scraping34-2.0.0.tar.gz
- Upload date:
- Size: 3.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f8c298a9bd5c4d8bf1a99a7aebc10a972db6a39da262171201dfedc091bf950
|
|
| MD5 |
8e3e3d283757a4db7ec527bc3e6d348f
|
|
| BLAKE2b-256 |
8787eadc9642e46d5088ea668503535877135bf4ff4b8a9634df7133d2ca0137
|
File details
Details for the file scraping34-2.0.0-py3-none-any.whl.
File metadata
- Download URL: scraping34-2.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfd36c3c65d0782c7a3347c3fd3951e25ec634f52584e7db59d42fa129b2a200
|
|
| MD5 |
d9c6a85705d19071ee0f6216cd55a5b7
|
|
| BLAKE2b-256 |
ec8e21f8412b778fd99bc27c8dc5250bdeaaee4e09a02c202fc689c75988e014
|