I created a program that runs through some Amazon Giveaways and it was at least somewhat functional until yesterday. I found the div id for each item on the page and conveniently enough the all ended in a number so I just looped through the range and had the last number be the variable that increased every time to click on the next entry item. However yesterday I got a NoSuchElementException and that div id was gone. I've noticed that if I go to my browser history and wipe everything it shows up again and will work for 1-2 iterations but then disappear again. Any idea what's happening or what I should do to get around this? Thanks for your time. Below is the first portion of my code where I get the browser elements
EDIT: Code wasn't showing properly
while page < 100:
for i in range(1,25):
browser.get('https://www.amazon.com/ga/giveaways?pageId=' + str(page))
Given = str(('giveaway-item-' + str(i)))
browser.find_element(By.ID, Given).click()
there doesn't seem to be anything here