Update example.py
This commit is contained in:
parent
a24541ab27
commit
fad2b621c9
|
@ -1,10 +1,13 @@
|
||||||
import time
|
import time
|
||||||
|
import logging
|
||||||
|
logging.basicConfig(level=10)
|
||||||
|
|
||||||
from selenium.common.exceptions import WebDriverException
|
from selenium.common.exceptions import WebDriverException
|
||||||
from selenium.webdriver.remote.webdriver import By
|
from selenium.webdriver.remote.webdriver import By
|
||||||
import selenium.webdriver.support.expected_conditions as EC # noqa
|
import selenium.webdriver.support.expected_conditions as EC # noqa
|
||||||
from selenium.webdriver.support.wait import WebDriverWait
|
from selenium.webdriver.support.wait import WebDriverWait
|
||||||
|
|
||||||
|
|
||||||
import undetected_chromedriver as uc
|
import undetected_chromedriver as uc
|
||||||
|
|
||||||
|
|
||||||
|
@ -164,7 +167,8 @@ def main(args=None):
|
||||||
print("lets go to UC project page")
|
print("lets go to UC project page")
|
||||||
driver.get("https://www.github.com/ultrafunkamsterdam/undetected-chromedriver")
|
driver.get("https://www.github.com/ultrafunkamsterdam/undetected-chromedriver")
|
||||||
|
|
||||||
input("press a key if you have RTFM")
|
|
||||||
|
sleep(2)
|
||||||
driver.quit()
|
driver.quit()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue