Added last_screenshot for debugging purposes
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user