From f1d892b710c15599eeea987707fb010b981ce942 Mon Sep 17 00:00:00 2001 From: tema Date: Fri, 28 Oct 2022 13:57:30 +0300 Subject: [PATCH] fix image parse --- parser/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/utils.py b/parser/utils.py index 5e8c9e7..a1ba8e3 100644 --- a/parser/utils.py +++ b/parser/utils.py @@ -24,7 +24,7 @@ def table_parser(soup: BeautifulSoup, output): def image_parser(soup: BeautifulSoup): - main = soup.find("p", style="text-align:center; margin:0cm 0cm 8pt") + main = soup.find("main") image = main.select_one('img[src$=".jpg"]') output = image['src']