Zimscraperlib

Latest version: v5.1.1

Safety actively analyzes 722898 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 8

1.5.0

Not secure
Added

- `zim.Archive.tags` and `zim.Archive.get_tags()` to retrieve parsed Tags
with optionnal `libkiwix` param to include libkiwix's hints
- [tests] Counter tests now also uses a libzim6 file.

Changed

- `zim.Archive.article_counter` follows libkiwix's new bahavior of
returning libzim's `article_count` for libzim 7+ ZIMs and
returning previously returned (parsed) value for older ZIMs.

Removed

- Unreachable code removed in `imaging` module.
- [tests] “Sanskrit” removed from tests as output not predicatble depending on plaftform.

1.4.3

Not secure
- `zim.Archive.counters` wont fail on missing `Counter` metadata

1.4.2

Not secure
- Fixed leak in `zim.Archive`'s `.counters`
- New `.get_text_metadata()` method on `zim.Archive` to save UTF-8 decoding

1.4.1

Not secure
- New `Counter` metadata based properties for Archive:
- `.counters`: parsed dict of the Counter metadata
- `.article_counter`: libkiwix's calculation for nb or article
- `.media_counter`: libkiwix's calculation for nb or media
- Fixed `i18n.find_language_names()` failing on some languages
- Added `uri` module with `rebuild_uri()`

1.4.0

Not secure
- Using new python-libzim based on libzim v7
- New Creator API
- Removed all namespace references
- Renamed `url` mentions to `path`
- Removed all links rewriting
- Removed Article/CSS/Binary seggreation
- Kept zimwriterfs mode (except it doesn't rewrite for namespaces)
- New `html` module for HTML document manipulations
- New callback system on `add_item_for()` and `add_item()`
- New Archive API with easier search/suggestions and content access
- Changed download log level to DEBUG (was INFO)
- `filesystem.get_file_mimetype` now passes bytes to libmagic instead of filename due to release issue in libmagic
- safer `inputs.handle_user_provided_file` regarding input as str instead of Path
- `image.presets` and `video.presets` now all includes `ext` and `mimetype` properties
- Video convert log now DEBUG instead of INFO
- Fixed `image.save_image()` saving to disk even when using a bytes stream
- Fixed `image.transformation.resize_image()` when resizing a byte stream without a dst

1.3.6

Not secure
Intermediate release using unreleased libzim to support development of libzim7.
Don't use it.

- requesting newer libzim version (not released ATM)
- New ZIM API for non-namespace libzim (v7)
- updated all requirements
- Fixed download test inconsistency
- fix_ogvjs mostly useless: only allows webm types
- exposing retry_adapter for refactoring
- Changed download log level to DEBUG (was INFO)
- guess more-defined mime from filename if magic says it's text
- get_file_mimetype now passes bytes to libmagic
- safer regarding input as str instead of Path
- fixed static item for empty content
- ext and mimetype properties for all presets
- Video convert log now DEBUG instead of INFO
- Added delete_fpath to add_item_for() and fixed StaticItem's auto remove
- Updated badges for new repo name

Page 5 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.