python硒被卡在现场加载屏幕上
首先,这是网站我使用。
我使用的代码块:
from selenium import webdriver
browserProfile = webdriver.ChromeOptions()
browserProfile.add_argument("start-maximized")
browserProfile.add_argument('--disable-blink-features=AutomationControlled')
browserProfile.add_argument('--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36')
browserProfile.add_experimental_option("excludeSwitches", ["enable-automation"])
browserProfile.add_experimental_option('useAutomationExtension', False)
browser = webdriver.Chrome("chromedriver.exe", chrome_options=browserProfile)
browser.get('https://www.gamermarkt.com')
chromedriver映像:
< img src =“ https://i.sstatic.net/e4ntv.png” alt =“在此处输入图像说明”>
留在此屏幕上。
我认为网站上有一个机器人块,但我不知道如何绕过它。
First of all, this is the website I use.
The code block I used:
from selenium import webdriver
browserProfile = webdriver.ChromeOptions()
browserProfile.add_argument("start-maximized")
browserProfile.add_argument('--disable-blink-features=AutomationControlled')
browserProfile.add_argument('--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36')
browserProfile.add_experimental_option("excludeSwitches", ["enable-automation"])
browserProfile.add_experimental_option('useAutomationExtension', False)
browser = webdriver.Chrome("chromedriver.exe", chrome_options=browserProfile)
browser.get('https://www.gamermarkt.com')
ChromeDriver image:
stays on this screen.
I think there is a bot block on the site, but I have no idea how to bypass it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议您探讨以下代码:
I would suggest you explore the following code:
确保您的Chromedriver是最新的。
在您的浏览器geto帮助中 - &gt;关于Google Chrome
并检查您的版本,然后获取最新的Chromedriver
从Chromedriver下载
Make sure your chromedriver is up-to-date.
In your browser goto help -> about Google Chrome
and check your version and then get the latest chromedriver
from chromedriver download