Extruct

Latest version: v0.16.0

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

Scan your dependencies

Page 2 of 4

0.9.0

-------------------

* REST API ``extruct.service`` removed
* ``rdflib`` dependency restrited to <5.0.0, as parsers used by extruct
were removed in 5.0.0

0.8.0

-------------------
* Python 3.4 support is dropped;
* in case of duplicate OpenGraph definitions (e.g. multiple ``og:image``),
empty results are de-prioritized now, to do the same as Facebook;
* text content of microdata attributes is now extracted using html-text
library, which fixes badly extracted text in some cases
(words glued together, etc.)

0.7.3

-------------------

* In case of duplicate OpenGraph definitions (e.g. multiple ``og:image``),
extruct now keeps the first one, not the last one,
to do the same as Facebook.

0.7.2

-------------------

* Cover all possible exception cases dealt by ``extruct()`` ``errors``
attribute for values ``strict``, ``log`` and ``ignore``
* avoid including ``itemprop`` from child ``itemscope`` when using
``itemref`` for microdata
* proper processing order for ``itemref`` for microdata

0.7.1

-------------------

* json-ld parsing issue is fixed;
* deprecation warning for ``url`` argument points to caller code;
* better Python 3.7 support (fixed warnings, setup running 3.7 tests on CI).

0.7.0

-------------------

In this release OpenGraph parsing is improved:

* known OpenGraph namespaces (og, music, video,
article, book, profile) work without an explicitly defined prefix;
* prefix is extracted both from ``<head>`` and ``<html>`` element attributes,
not only from ``<head>``;
* prefix parsing is more permissive.

Other changes:

* pypi version badge is added to the README;
* html parsing code is cleaned up.

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.