Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

selenium error 403 python

#add this to your code, should be enough to fool most sites:
from selenium.webdriver.chrome.options import Options

options = Options()

options.add_argument('--disable-blink-features=AutomationControlled')
options.add_argument("--disable-extensions")
options.add_experimental_option('useAutomationExtension', False)
options.add_experimental_option("excludeSwitches", ["enable-automation"])

chrome_driver = webdriver.Chrome(options=options)

chrome_driver.execute_script("Object.defineProperty(navigator, 'webdriver', {get: () => undefined})")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #selenium #error #python
ADD COMMENT
Topic
Name
2+5 =