Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions stores/amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,13 @@ def check_stock(self, asin, reserve_min, reserve_max, retry=0):

if open_offers_link:
log.debug("Attempting to click the open offers link...")
try:
cookie_button = self.driver.find_element_by_xpath("//input[@id='sp-cc-accept']")
except:
cookie_button = None
if cookie_button:
cookie_button.click()
log.info("Cookies accepted!")
try:
open_offers_link.click()
except sel_exceptions.WebDriverException as e:
Expand Down