diff --git a/bot/bot.py b/bot/bot.py index 08ee06b..fc368a1 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -59,6 +59,7 @@ def find_amazon_link(update: Update, context: CallbackContext) -> None: driver.set_window_size(random.randint(1200, 1800), random.randint(600, 1000)) logging.info("Loading Amazon webpage") driver.get(referurl) + driver.save_screenshot('/app/data/last_screenshot.png') logging.info("Scraping information and closing browser") soup = BeautifulSoup(driver.page_source, "lxml") etree_soup = BeautifulSoup(driver.page_source, "html.parser")