我已经用python和selenium联合编写了一个脚本来解析网站上的前100个名字。当我运行脚本时,我得到一个弹出框作为通知/警告。你知道吗
What might be the issue here as I've been using the same approach quite some time without any issues in different sites?
from selenium import webdriver
def collect_names(driver,link):
driver.get(link)
for item in driver.find_elements_by_css_selector(".topcolumn h2"):
print(item.text)
if __name__ == '__main__':
url = "https://propertyspark.com/top-100-real-estate-teams-on-social-media-in-2018/"
driver = webdriver.Chrome()
collect_names(driver,url)
driver.quit()
以下是问题签名:
Problem signature:
Problem Event Name: APPCRASH
Application Name: chromedriver.exe
Application Version: 0.0.0.0
Application Timestamp: 5a9904fa
Fault Module Name: chromedriver.exe
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 5a9904fa
Exception Code: c0000005
Exception Offset: 0003c586
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
你最近好像升级了你的浏览器,所以你也需要升级你的浏览器驱动程序.exe为了兼容性。你知道吗
Download chrome Driver exe
相关问题 更多 >
编程相关推荐