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)
Metadata
Release files for zerochan 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zerochan-0.5.0.tar.gz | 5.2 kB | Without provenance | Details for zerochan-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zerochan-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for zerochan-0.5.0-py3-none-any.whl |
Total release size: 10.9 kB
Release files / zerochan-0.5.0.tar.gz
| Download URL | zerochan-0.5.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1bf9455cb618ca0d166bd0d2f05113890f9360ca1406928776328eee51ac6af
|
|
BLAKE2b-256 checksum How to use checksums |
bdd50675883ec710a130a0e031672f29c5a72dfa6d6197ffce41a75a9b74a4eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.9.7 Windows/10
|
Release files / zerochan-0.5.0-py3-none-any.whl
| Download URL | zerochan-0.5.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0f2b38d015cbe4bf403c4f956ca05e78e4856eeb20be4d1b7f1d702033b718a
|
|
BLAKE2b-256 checksum How to use checksums |
121f85fa592fc873cf7352ef7b26777a1c162142b12ff939e82bd08eb949b82b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.9.7 Windows/10
|
Security for zerochan 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.