Skip to content

Commit

Permalink
Changes to robst parser 'html5lib' for Hetzner
Browse files Browse the repository at this point in the history
The parser BeautifulSoup(dom, 'html.parser') had problems by
with malformed HTML code, i.e. a second </strong> closing tag.
  • Loading branch information
nine committed Mar 17, 2020
1 parent bc1190d commit d8c2081
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lexicon/providers/hetzner.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ def _filter_dom(dom, filters, last_find_all=False):
have no match.
"""
if isinstance(dom, string_types):
dom = BeautifulSoup(dom, 'html.parser')
dom = BeautifulSoup(dom, 'html5lib')
for idx, find in enumerate(filters, start=1):
if not dom:
break
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
'transip': ['transip>=0.3.0'],
'plesk': ['xmltodict'],
'henet': ['beautifulsoup4'],
'hetzner': ['dnspython>=1.15.0', 'beautifulsoup4'],
'hetzner': ['dnspython>=1.15.0', 'beautifulsoup4', 'html5lib'],
'easyname': ['beautifulsoup4'],
'localzone': ['localzone'],
'gratisdns': ['beautifulsoup4'],
Expand Down

0 comments on commit d8c2081

Please sign in to comment.