Fix parser

This commit is contained in:
tema 2022-11-13 10:26:40 +02:00
parent 20055de28f
commit 66283e0730
Signed by: tema
GPG Key ID: 21FDB6D162488F6F

View File

@ -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