From 9cd3d3c59bf9ac8734ff139857de7a585370e080 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Wed, 9 Oct 2019 16:49:10 +0100 Subject: [PATCH] Catch another way of writing the description --- depicts/parse_catalog.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/depicts/parse_catalog.py b/depicts/parse_catalog.py index ea8a539..2dc3d22 100644 --- a/depicts/parse_catalog.py +++ b/depicts/parse_catalog.py @@ -13,6 +13,10 @@ def get_description_from_page(html): if div is not None: return div.text + div_list = root.find_class('item-description') + if len(div_list): + return div_list[0].text_content() + meta_twitter_description = root.find('.//meta[@name="twitter:description"]') if meta_twitter_description is None: return