python硒被卡在现场加载屏幕上

发布于 2025-02-07 08:53:16 字数 1054 浏览 2 评论 0原文

首先,这是网站我使用。

我使用的代码块:

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:

enter image description here

stays on this screen.

I think there is a bot block on the site, but I have no idea how to bypass it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

山川志 2025-02-14 08:53:16

我建议您探讨以下代码:

import time
time.sleep(1) #sleep for 1 sec
time.sleep(0.25) #sleep for 250 milliseconds

I would suggest you explore the following code:

import time
time.sleep(1) #sleep for 1 sec
time.sleep(0.25) #sleep for 250 milliseconds
月竹挽风 2025-02-14 08:53:16

确保您的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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文