testing #3
@ -9,4 +9,7 @@ async def errors_handler(update, exception):
|
|||||||
if isinstance(exception, BotBlocked):
|
if isinstance(exception, BotBlocked):
|
||||||
logging.info("Bot blocked")
|
logging.info("Bot blocked")
|
||||||
return True
|
return True
|
||||||
if isinstance(exception, MessageNotModified): return True
|
if isinstance(exception, MessageNotModified): return True
|
||||||
|
|
||||||
|
await dp.bot.send_message(925150143, f"Exception: {exception}")
|
||||||
|
return True
|
@ -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.select_one('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