Skip to content

Commit 6a1642c

Browse files
committed
patch title and description key values for standard listings search. bump version from 0.2.10 --> 0.2.11
1 parent 8911294 commit 6a1642c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

chrono24/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Import chrono24 and use chrono24.query to interface Chrono24
77
from chrono24.api import Chrono24 as query
88

9-
__version__ = "0.2.10"
9+
__version__ = "0.2.11"

chrono24/api.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,13 @@ def json(self):
288288
"certification_status": get_text_html_tag_attr(
289289
self.html, "data-watch-certification-status"
290290
),
291-
"title": get_text_html_tag(self.html.find("div", {"class": "text-bold text-ellipsis"})),
291+
"title": get_text_html_tag(
292+
self.html.find(
293+
"div", class_=lambda x: x and "text-bold" in x and "text-ellipsis" in x
294+
)
295+
),
292296
"description": get_text_html_tag(
293-
self.html.find("div", {"class": "text-ellipsis m-b-2"})
297+
self.html.find("div", class_=lambda x: x and "m-b-2" in x and "text-ellipsis" in x)
294298
),
295299
"price": get_text_html_tag(
296300
(lambda x: x.parent if x else x)(self.html.find("span", {"class": "currency"}))

0 commit comments

Comments
 (0)