element=bro.find_element_by_xpath('//[@id="J_goodsList"]/ul/li[1]/div/div[3]/a[@href]') print(element.get_attribute('href'))
selenium: 爬取链接的方法
最新推荐文章于 2024-03-14 15:03:58 发布
element=bro.find_element_by_xpath('//[@id="J_goodsList"]/ul/li[1]/div/div[3]/a[@href]') print(element.get_attribute('href'))