- commit
- 1a7f663f0a80f5a50015a7c1cacbcde225c3fc0e
- parent
- 623352fa2411dc6b1acf595f3de262ed993ef7d1
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-12-07 14:26
tweak html parsing
Diffstat
| M | handelsregister.py | 4 | ++-- |
1 files changed, 2 insertions, 2 deletions
diff --git a/handelsregister.py b/handelsregister.py
@@ -38,8 +38,8 @@ def search(terms, register=''): 38 38 ) 39 39 r.raise_for_status() 40 4041 -1 html = BeautifulSoup(r.text, features='lxml')42 -1 for item in html.select('[data-ri]'):-1 41 soup = BeautifulSoup(r.content, features='html.parser') -1 42 for item in soup.select('[data-ri]'): 43 43 yield { 44 44 'title': item.find(class_='marginLeft20').text, 45 45 'id': item.find(class_='fontWeightBold').text.strip(),