Python library and download cli util for https://www.zerochan.net
Project description
Zerochan
Library for Zerochan.net with pics parsing and downloader included!
Features
- CLI utility for pics downloading from zerochan.net
- Library for create custom downloader (you can write own) or data analyze.
- Strong typed!
Installation:
Using pip
pip install zerochan
Using poetry
poetry add zerochan
Using as downloader tool:
After install you can call zerochan by command python -m zerochan
Using as library:
First, you should create Zerochan instance:
from zerochan import ZeroChan
zerochan_instance = ZeroChan()
Now, you can set some args for request
from zerochan import ZeroChan, PictureSize, SortBy
zerochan = ZeroChan()
zerochan.search("Spain") # Set title to search
zerochan.size(PictureSize.BIGGER_AND_BETTER) # Set quality and pic size
zerochan.sort(SortBy.POPULAR) # Set sorting (now only popular)
zerochan.page(1) # Page to parse
zerochan.authorize("hjsaf7afkjsaf78", "127364") # Authorize by z_hash and z_id in cookies
...or set args like this:
zerochan.search("Spain")\
.size(PictureSize.BIGGER_AND_BETTER)\
.sort(SortBy.POPULAR)
After all settings, you should call .pics() to get pics:
data = zerochan.pics()
for img in data.images:
print(img.url)
Project details
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 zerochan-0.5.0.tar.gz.
File metadata
- Download URL: zerochan-0.5.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1bf9455cb618ca0d166bd0d2f05113890f9360ca1406928776328eee51ac6af
|
|
| MD5 |
f150d020d9d76dc609e2e2f7b61bb701
|
|
| BLAKE2b-256 |
bdd50675883ec710a130a0e031672f29c5a72dfa6d6197ffce41a75a9b74a4eb
|
File details
Details for the file zerochan-0.5.0-py3-none-any.whl.
File metadata
- Download URL: zerochan-0.5.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0f2b38d015cbe4bf403c4f956ca05e78e4856eeb20be4d1b7f1d702033b718a
|
|
| MD5 |
e9286a6b4967866dad272c6eff43db90
|
|
| BLAKE2b-256 |
121f85fa592fc873cf7352ef7b26777a1c162142b12ff939e82bd08eb949b82b
|