I am trying to access amazon using selenium to scrape data from it. But I am getting sorry something went wrong on our end please go back and try again. I tried multiple solutions from stack overflow but all in vain. By adding user-agent to code loaded a page once correctly after now I am getting same error again.
`from selenium import webdriver
url = ‘https://www.amazon.com/s?k=iphone&crid=23KI1BW6JP5HT&sprefix=iphon%2Caps%2C402&ref=nb_sb_noss_2’
browser = webdriver.Chrome()
browser.get(url)
`
Usama Siddique is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.