You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Python Selenium WebDriver在Chrome中无法登录Value Research Online网站的问题求助

使用Python Selenium WebDriver在Chrome中无法登录Value Research Online网站的问题求助

我现在在用Python的Selenium模块登录Value Research Online的登录页面。

我能够点击“Login with password”按钮,也能成功输入用户名,但当我点击“Submit”按钮后,页面就会返回错误提示:"Unable to process your request. Please try again."。我推测这是网站识别出了自动化登录脚本,从而拦截了请求。以下是我编写的代码:

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
import pandas as pd
import requests
from bs4 import BeautifulSoup

# Set up the Chrome WebDriver
driver = webdriver.Chrome()

url = "https://www.valueresearchonline.com/login/?site-code=VROL&target=%2F&utm_source=home&utm_medium=vro&utm_campaign=desktop-profile-menu/"
driver.get(url)
driver.implicitly_wait(5)

# Click the button 'Login with password' (step 1)
login_button1 = driver.find_element(By.CSS_SELECTOR, "button[data-user='Log in with password']")
login_button1.click()

# Define login credentials
username = 'abc@gmail.com'
# Find the username input field and submit button (step 2)
username_field = driver.find_element(By.NAME, 'username')
# Enter the username into the field
username_field.send_keys(username)

login_button2 = driver.find_element(By.CSS_SELECTOR, "button[id='proceed-btn']")
# Submit the username to go to the password page
login_button2.click()

我已经在相关技术论坛上查阅了一些类似的问题帖,但大部分要么没有给出有效的解决方案,要么提供的方法在我的场景下并不生效。想请教大家有没有可行的绕过检测的办法?

感谢各位的帮助!

备注:内容来源于stack exchange,提问作者user28864790

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.14 16:43:09