From 66283e07300f2473c66e0b1309342bce3285dfa6 Mon Sep 17 00:00:00 2001 From: tema Date: Sun, 13 Nov 2022 10:26:40 +0200 Subject: [PATCH] Fix parser --- parser/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser/utils.py b/parser/utils.py index 429d599..6733995 100644 --- a/parser/utils.py +++ b/parser/utils.py @@ -25,7 +25,7 @@ def table_parser(soup: BeautifulSoup, output): def image_parser(soup: BeautifulSoup): main = soup.find("main") - image = main.find('img[src$=".jpg"]') - output = image['src'] + image = main.select('img[src$=".png"]') + output = image[0]['src'] return output