正在尝试通过以下方式读取Likedin提要中的评论: comments = browesr.find_elements_by_xpath("//*[@class='comments-comments-listnetworkManaging Director at Interviout of networkManaging Director at Intervi 正如您所看到的,is是不同的,但是每个is中的元素</e
我正在运行Python 3.7.1和Selenium 4.0.0a6。我想在Selenium 4中使用新的相对定位器函数,但总是得到一个"TypeError: Object of type JSON is not JSON serializable“错误。我知道我已经成功地获取了元素,因为当我执行"print(the_name.text)“时,我会返回"New_6”。然后我调用"dotz = driver.find_element(with_tag_name(&qu
忽略葡萄牙语的评论from time import sleepfrom selenium.webdriver.common.byimport By
driver=webdriver.Chrome('C:/Users/LENOVO/Desktop/WEB SCRAPPING/Selenium/chromedriver.exe