I am trying to navigate through this site to see the offer available at this address but I get an access denied error. Any recommendations on getting around this?
from selenium import webdriver
browser = webdriver.Chrome('/chromedriver')
browser.get('https://official.spectrum.com/')
addressSearch = browser.find_element_by_id('street-hero')
addressSearch.send_keys('5214 Wentworth Dr')
zipSearch = browser.find_element_by_id('zip-hero')
zipSearch.send_keys('78413')
submitBtn = browser.find_element_by_xpath('//*[@id="form-section"]/form/button')
submitBtn.click()
In general you need to make sure that chromedriver_path
is accessible for the user that is executing the script and with right permissions
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.