Zimscraperlib

Latest version: v4.0.0

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

Scan your dependencies

Page 3 of 7

1.7.0

Added

- `zim.Creator` now supports `ignore_duplicates: bool` parameter to
prevent duplicates from raising exceptions
- `zim.Creator.add_item`, `zim.Creator.add_redirect` and `zim.Creator.add_item_for`
now supports a `duplicate_ok: bool` parameter to prevent an exception
should this item/redirect be a duplicate

1.6.3

Added

- `download.stream_file()` supports passing `headers` (scrapers were already using it)

1.6.2

Changed

- Fixed `filesystem.get_content_mimetype()` crashing on non-guessable byte stream

1.6.1

Changed

- Wider range of accepted lxml dependency version as 4.9.1 fixes a security issue

1.6.0

Not secure
Added

- `Archive.get_metadata_item()` to retrieve full item instead of just value

Changed

- Using pylibzim v1.1.0 (using libzim 7.2.1)
- Adding duplicate entries now raises RuntimeError
- filesize is fixed for larger ZIMs

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.

Page 3 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.