Collection of python tools to re-use common code across scrapers
Project description
zimscraperlib
Collection of python code to re-use across python-based scrapers
Usage
- This library is meant to be installed via PyPI (
zimscraperlib). - Make sure to reference it using a version code as the API is subject to frequent changes.
- API should remain the same only within the same minor version.
Example usage:
zimscraperlib>=1.1,<1.2
See documentation at Read the Docs for details.
Dependencies
- libmagic
- wget
- libzim (auto-installed, not available on Windows)
- Pillow
- FFmpeg
- gifsicle (>=1.92)
- libcairo (if you use the image manipulation, this is used for svg conversion)
macOS
brew install libmagic wget libtiff libjpeg webp little-cms2 ffmpeg gifsicle
Linux
sudo apt install libmagic1 wget ffmpeg \
libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev \
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
libharfbuzz-dev libfribidi-dev libxcb1-dev gifsicle
Alpine
apk add ffmpeg gifsicle libmagic wget libjpeg
Contribution
This project adheres to openZIM's Contribution Guidelines.
This project has implemented openZIM's Python bootstrap, conventions and policies v1.0.2.
pip install hatch
pip install ".[dev]"
pre-commit install
# For tests
invoke coverage
Users
Non-exhaustive list of scrapers using it (check status when updating API):
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 zimscraperlib-5.2.0.tar.gz.
File metadata
- Download URL: zimscraperlib-5.2.0.tar.gz
- Upload date:
- Size: 6.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81adb060e28f230acfa6360e86374ae126ed2799cbb98897c924ffc5cbc7f6a5
|
|
| MD5 |
5c64d6968b9586f11b21bd26b14f4afd
|
|
| BLAKE2b-256 |
8c5d9ae87f4599272443c492a8feac26503a1531a55ba3785cb997f4f2b1e266
|
Provenance
The following attestation bundles were made for zimscraperlib-5.2.0.tar.gz:
Publisher:
Publish.yaml on openzim/python-scraperlib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zimscraperlib-5.2.0.tar.gz -
Subject digest:
81adb060e28f230acfa6360e86374ae126ed2799cbb98897c924ffc5cbc7f6a5 - Sigstore transparency entry: 578778546
- Sigstore integration time:
-
Permalink:
openzim/python-scraperlib@e47e620d1e9275a21655a6070c43bdef64da18a1 -
Branch / Tag:
refs/tags/v5.2.0 - Owner: https://github.com/openzim
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
Publish.yaml@e47e620d1e9275a21655a6070c43bdef64da18a1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file zimscraperlib-5.2.0-py3-none-any.whl.
File metadata
- Download URL: zimscraperlib-5.2.0-py3-none-any.whl
- Upload date:
- Size: 126.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cfde10872be0e28e18487bb0ef6760b230e4a9a54c725c6c4b795952bcb93d2
|
|
| MD5 |
33b0f8578cb08120a644372b0fd46790
|
|
| BLAKE2b-256 |
6eeed9facd8d81e0af2d4a0f3546f76b09b039c05ac1e7f351dfd620ad533d9f
|
Provenance
The following attestation bundles were made for zimscraperlib-5.2.0-py3-none-any.whl:
Publisher:
Publish.yaml on openzim/python-scraperlib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zimscraperlib-5.2.0-py3-none-any.whl -
Subject digest:
2cfde10872be0e28e18487bb0ef6760b230e4a9a54c725c6c4b795952bcb93d2 - Sigstore transparency entry: 578778558
- Sigstore integration time:
-
Permalink:
openzim/python-scraperlib@e47e620d1e9275a21655a6070c43bdef64da18a1 -
Branch / Tag:
refs/tags/v5.2.0 - Owner: https://github.com/openzim
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
Publish.yaml@e47e620d1e9275a21655a6070c43bdef64da18a1 -
Trigger Event:
release
-
Statement type: