简体   繁体   English

使用 Selenium 拒绝访问网站

[英]Access denied to website using with Selenium

I have a problem with even an open website using "webdriver Chrome".即使是使用“webdriver Chrome”的开放网站,我也有问题。 Only trying to open the website end with "Access denied" information and don't know why.只是试图打开以“访问被拒绝”信息结尾的网站,不知道为什么。 Below is my code:下面是我的代码:

driver = webdriver.Chrome()
driver.get("https://www.lowes.com/login")
time.sleep(5)   
driver.find_element_by_id("Email").send_keys("teshooabood@gmail.com")
driver.find_element_by_id("Password").send_keys("Tz5PRZPeF@ytb3e\n")

I feel like this is not a problem of your selenium script.我觉得这不是您的 selenium 脚本的问题。

Navigating to https://www.lowes.com/ and clicking on Sign in -> Sign in or create account results in 403 Forbidden: Access denied immediately.导航至https://www.lowes.com/并单击Sign in -> Sign in or create account结果为403 Forbidden: Access denied Same for directly navigating to https://www.lowes.com/login .直接导航到https://www.lowes.com/login 也是一样。 I guess there is some bug in the webpage's code.我猜网页代码中有一些错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM