我正在尝试运行此代码来打印在 ebay 上出售的商品的标签:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
PATH = "C:\src\chromedriver.exe"
driver = webdriver.Chrome(PATH)
driver.get("https://www.ebay.co.uk/sh/ord/?filter=status%3AAWAITING_SHIPMENT")
title = driver.title
if title == "Sign in or Register | eBay":
username = driver.find_element_by_id("userid")
username.send_keys("username")
username.send_keys(Keys.RETURN)
但是,用户名没有在文本框中提交,我可以在 chromedriver.exe 中看到错误:
[9496:19816:0710/133749.738:ERROR:ssl_client_socket_impl.cc(959)] handshake failed; returned -1, SSL error code 1, net_error -200
[9496:19816:0710/133751.420:ERROR:ssl_client_socket_impl.cc(959)] handshake failed; returned -1, SSL error code 1, net_error -100
[9496:19816:0710/133751.433:ERROR:ssl_client_socket_impl.cc(959)] handshake failed; returned -1, SSL error code 1, net_error -100
[1716] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_User_shell
我该如何解决这个问题,为什么会这样?
编辑:这只是我程序的一部分,我还得想办法打印标签。
波斯汪
相关分类