File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 6
6
# Import chrono24 and use chrono24.query to interface Chrono24
7
7
from chrono24 .api import Chrono24 as query
8
8
9
- __version__ = "0.2.10 "
9
+ __version__ = "0.2.11 "
Original file line number Diff line number Diff line change @@ -288,9 +288,13 @@ def json(self):
288
288
"certification_status" : get_text_html_tag_attr (
289
289
self .html , "data-watch-certification-status"
290
290
),
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
+ ),
292
296
"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 )
294
298
),
295
299
"price" : get_text_html_tag (
296
300
(lambda x : x .parent if x else x )(self .html .find ("span" , {"class" : "currency" }))
You can’t perform that action at this time.
0 commit comments