我正在尝试使用selenium访问一个站点。但该网站正在通过cloudflare不断地检查和检查。不会再有其他的页面了。
看看这里的截图。
我试过未被发现的铬,但它根本不起作用。
发布于 2022-03-17 20:13:56
未检测到的铬是指未被检测到的显色剂吗?:
不管怎样,不被发现-显色剂是为我工作的:
未检色驱动器
Github:https://github.com/ultrafunkamsterdam/undetected-chromedriver
pip install undetected-chromedriver
获取cloudflare受保护站点的代码:
import undetected_chromedriver as uc
driver = uc.Chrome(use_subprocess=True)
driver.get('https://nowsecure.nl')
我的POV
登录到google帐户的快速设置代码:
Github:https://github.com/xtekky/google-login-bypass
import undetected_chromedriver as uc
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
# ---------- EDIT ----------
email = 'email\n' # replace email
password = 'password\n' # replace password
# ---------- EDIT ----------
driver = uc.Chrome(use_subprocess=True)
wait = WebDriverWait(driver, 20)
url = 'https://accounts.google.com/ServiceLogin?service=accountsettings&continue=https://myaccount.google.com%3Futm_source%3Daccount-marketing-page%26utm_medium%3Dgo-to-account-button'
driver.get(url)
wait.until(EC.visibility_of_element_located((By.NAME, 'identifier'))).send_keys(email)
wait.until(EC.visibility_of_element_located((By.NAME, 'password'))).send_keys(password)
print("You're in!! enjoy")
# [ ---------- paste your code here ---------- ]
https://stackoverflow.com/questions/71518406
复制相似问题