From c1b08e955c9892932dc21f37e3c4b754c62e7306 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Mon, 9 Sep 2024 10:56:00 +0530 Subject: [PATCH] ... --- recipes/scmp.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/scmp.recipe b/recipes/scmp.recipe index 409ce70c47..1fd579f62b 100644 --- a/recipes/scmp.recipe +++ b/recipes/scmp.recipe @@ -12,7 +12,6 @@ from html5_parser import parse from lxml import etree from calibre import replace_entities -from calibre.ebooks.BeautifulSoup import BeautifulSoup from calibre.web.feeds.news import BasicNewsRecipe, classes @@ -160,6 +159,7 @@ class SCMP(BasicNewsRecipe): try: load_article_from_json(script[0].text, b_root) except Exception: + self.log('** Failed parse: ', url) return raw_html head = b_root.xpath('//h2') + b_root.xpath('//h3') for h2 in head: