tatuylonen / wikitextprocessor

Python package for WikiMedia dump processing (Wiktionary, Wikipedia etc). Wikitext parsing, template expansion, Lua module execution. For data extraction, bulk syntax checking, error detection, and offline formatting.
Other
94 stars 23 forks source link

find_html: allow list of tags to find. #328

Closed kristian-clausal closed 1 month ago

kristian-clausal commented 1 month ago

To make find_html work the same was as find_child, allow target_tag (now target_tags) to be a list of strings instead of a single string, and return all HTML element children with one of those tags.

kristian-clausal commented 1 month ago

Ah, what an embarrassing mistake... Thank you, --amend and push --force for hiding it from the world.