from selenium import webdriver
from fake_useragent import UserAgent
ua = UserAgent()
userAgent = ua.random
options = webdriver.ChromeOptions()
options.add_argument(f'user-agent={userAgent}')
options.add_argument("--headless")
options.add_argument("start-maximized")
options.add_argument("--disable-blink-features")
options.add_argument("--disable-blink-features=AutomationControlled")
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
driver = webdriver.Chrome(options=options)
driver.execute_script("Object.defineProperty(navigator, 'webdriver', {get: () => undefined})")
Senin, 26 April 2021
- Blogger Comments
- Facebook Comments
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar