adbar / trafilatura

Python & Command-line tool to gather text and metadata on the Web: Crawling, scraping, extraction, output as CSV, JSON, HTML, MD, TXT, XML
https://trafilatura.readthedocs.io
Apache License 2.0
3.66k stars 262 forks source link

`bare_extraction()`: deprecate `as_dict` parameter #729

Closed adbar closed 3 weeks ago

adbar commented 1 month ago

The Document class exposes a .as_dict() method to return its elements as a Python dict instead of class attributes.

The as_dict parameter in bare_extraction() can be deprecated by first adding a deprecation warning.