Skip to content

Releases: thomasborgen/soup2dict

2.1.0

26 Dec 07:50
Compare
Choose a tag to compare

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

17 Dec 23:05
6d2f998
Compare
Choose a tag to compare

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

The License

13 Nov 14:16
Compare
Choose a tag to compare

Patch adds MIT LICENSE and updates metadata in pyproject.toml

The Converter

11 Nov 08:25
8749ae7
Compare
Choose a tag to compare

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.