Fix parser
This commit is contained in:
parent
20055de28f
commit
66283e0730
@ -25,7 +25,7 @@ def table_parser(soup: BeautifulSoup, output):
|
|||||||
|
|
||||||
def image_parser(soup: BeautifulSoup):
|
def image_parser(soup: BeautifulSoup):
|
||||||
main = soup.find("main")
|
main = soup.find("main")
|
||||||
image = main.find('img[src$=".jpg"]')
|
image = main.select('img[src$=".png"]')
|
||||||
output = image['src']
|
output = image[0]['src']
|
||||||
|
|
||||||
return output
|
return output
|
||||||
|
Loading…
Reference in New Issue
Block a user