绕过机器人检测硒(运动鞋机器人)

时间:2021-03-29 18:28:39

标签: selenium browser bots detection

https://www.offspring.co.uk/view/product/offspring_catalog/5,22/4166604246, 网站不允许我添加到购物车,它只会无限加载。更改了 webdriver 的 cdc_ 文件,它尝试了几次,然后停止工作。别担心,我确实用字符数替换了它。所以我一直在滚动浏览如此多的网页,试图找到一个解决方案,很确定我已经尝试了我能找到的一切。 任何帮助都会非常有用。这是代码开头的一段。

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver import ActionChains
from selenium.webdriver.chrome.options import Options
from selenium_stealth import stealth
import time

url=str(input("URL: "))
size=int(input("SIZE: "))



option= webdriver.ChromeOptions()
option.add_argument('--disable-blink-features=AutomationControlled')
browser = webdriver.Chrome(executable_path='chromedriver.exe',options=option)
browser.get(url)

0 个答案:

没有答案