Skip to content

Commit 896b9ba

Browse files
committed
Fixed auction history parsing breaking due to the cookie consent dialog
1 parent 4e4b104 commit 896b9ba

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Changelog
66
Due to this library relying on external content, older versions are not guaranteed to work.
77
Try to always use the latest version.
88

9+
.. v3.6.5:
10+
11+
3.6.5 (2021-01-27)
12+
==================
13+
14+
- Fixed auction history parsing breaking due to the cookie consent dialog.
15+
916
.. v3.6.4:
1017
1118
3.6.4 (2021-01-26)

tibiapy/bazaar.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ def from_content(cls, content):
389389
"""
390390
try:
391391
parsed_content = parse_tibiacom_content(content, builder='html5lib')
392-
tables = parsed_content.find_all("div", attrs={"class": "TableContainer"})
392+
content_table = parsed_content.find("div", attrs={"class": "BoxContent"})
393+
tables = content_table.find_all("div", attrs={"class": "TableContainer"})
393394
filter_table = None
394395
if len(tables) == 1:
395396
auctions_table = tables[0]

0 commit comments

Comments
 (0)