Soup2dict

Latest version: v2.1.0

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

Scan your dependencies

2.1.0

This release moves some code around and introduces the new keyword argument `as_json: bool` that, if `True`, dumps the soup to `json string` right from the function.

Feature

* Add `as_json` keyword parameter to `convert`

Internal

* Moves `classes.typeclass` functions to `transformer.py` and renames the `convert` function to `transform`. This is so that we can have a new `convert` function in our `__init__.py` with the new parameter and this feature will not introduce a breaking change.
* Fix CI after main branch change

2.0.0

No new features in this release, but we now support python 3.9 and 3.10


Breaking

* soup2dict drops python 3.6 support

Features

* Add support for python 3.9 and 3.10

Internal

* Fixes poetry install in github workflows
* Cleans up github workflow
* Add python 3.9 and 3.10 to github workflows

1.0.1

Patch adds MIT LICENSE and updates metadata in pyproject.toml

1.0.0

First Release. Should be able handle most BeautifulSoup stuff

Features

* BeautifulSoup to dictionary converter
* Converts BeautifulSoup, ResultSet, (list), Tag and all descendants of NavigableString Classes.
* tag attributes are prefixed with ``
* text data is contained in `text` key
* `class` is always a list of 1-many classes if it exists on the element
* all sub elements are `element_name` keys with an array containing 1 to many dictionaries.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.