| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Collection of python code to re-use across python-based scrapers
Example usage:
zimscraperlib>=1.1,<1.2
See documentation at Read the Docs for details.
Warning
While this library brings support for downloading videos with yt-dlp, recent changes in Youtube have forced yt-dlp team to require new dependencies for youtube videos (see yt-dlp/yt-dlp#15012). These dependencies are significantly big and not needed for all other backend supported by yt-dlp (only youtube needs it). These dependencies are hence not included in this library dependencies (yet, see #268), you have to install them on your own if you intend to download videos from Youtube.
Most dependencies are installed automatically by pip (from PyPI by default). The following system packages may be required depending on which features you use:
Note: To run the full test suite, all system dependencies listed above must be installed.
brew install libmagic wget ffmpeg gifsicle cairosudo apt install libmagic1 wget ffmpeg gifsicle libcairo2apk add ffmpeg gifsicle libmagic wget cairoThis project adheres to openZIM's Contribution Guidelines.
This project has implemented openZIM's Python bootstrap, conventions and policies v2.0.0.
All instructions below must be run from the root of your local clone of this repository.
If you do not already have it on your system, install hatch:
pip install hatchStart a hatch shell — this will install all dependencies including dev in an isolated virtual environment:
hatch shellSet up the pre-commit Git hook (runs linters automatically before each commit):
pre-commit installRun tests with coverage:
invoke coverageNon-exhaustive list of scrapers using it (check status when updating API):
| Back | FazBrowse Home | New Git URL |