├── README.md ├── main.py ├── main_undetected_crome.py └── undetected_selenium_cromedriver.zip /README.md: -------------------------------------------------------------------------------- 1 | # 🌐 Python Undetected-Chromedriver 2 | ## Know more ways? Create a pull request! 3 | --- 4 | More interesting projects: - https://netstalkers.com/private 5 | 6 | ### 🎥 [PYTHON:TODAY](https://youtu.be/gvYGIhuiJQI) 7 | ### 🔥 [Telegram](https://t.me/python2day) 8 | --- 9 | ``` 10 | $ pip install selenium 11 | $ pip install undetected-chromedriver 12 | ``` 13 | --- 14 | 15 | [Code](https://github.com/pythontoday/undetected_selenium_cromedriver) 16 | -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | from selenium import webdriver 2 | from selenium.webdriver.chrome.service import Service 3 | import time 4 | 5 | options = webdriver.ChromeOptions() 6 | options.add_argument("user-agent=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0") 7 | options.add_argument("--disable-blink-features=AutomationControlled") 8 | 9 | # driver = webdriver.Chrome( 10 | # executable_path="/path/chromedriver", 11 | # options=options 12 | # ) 13 | 14 | s = Service(executable_path="/path/chromedriver") 15 | driver = webdriver.Chrome(service=s, options=options) 16 | 17 | try: 18 | driver.get("https://intoli.com/blog/not-possible-to-block-chrome-headless/chrome-headless-test.html") 19 | # driver.get("https://www.vindecoderz.com/EN/check-lookup/ZDMMADBMXHB001652") 20 | 21 | time.sleep(10) 22 | except Exception as ex: 23 | print(ex) 24 | finally: 25 | driver.close() 26 | driver.quit() 27 | -------------------------------------------------------------------------------- /main_undetected_crome.py: -------------------------------------------------------------------------------- 1 | import undetected_chromedriver 2 | import time 3 | 4 | try: 5 | driver = undetected_chromedriver.Chrome() 6 | # driver.get("https://intoli.com/blog/not-possible-to-block-chrome-headless/chrome-headless-test.html") 7 | driver.get("https://www.vindecoderz.com/EN/check-lookup/ZDMMADBMXHB001652") 8 | time.sleep(15) 9 | except Exception as ex: 10 | print(ex) 11 | finally: 12 | driver.close() 13 | driver.quit() 14 | -------------------------------------------------------------------------------- /undetected_selenium_cromedriver.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythontoday/undetected_selenium_cromedriver/f1bf54e13cd4d701bbae3b94031f7b503e9f8607/undetected_selenium_cromedriver.zip --------------------------------------------------------------------------------