xpath
我想利用xpath获取href里面的这一串代码该怎么获取呢?求大佬给出解决方式!!! https://fishc.com.cn/thread-184355-1-1.htmlBeautifulSoup模块+select()函数很给力,不妨试试? html.xpath(".//a[@class="ag_ele_a"]/@href") //*[@id="ag_main_list"]/div/a/@href //div[@class=“ag_ele ag_ele_v”]/a/@href 右键 copy xpath 然后找href
笨鸟学飞 发表于 2020-11-24 22:22
https://fishc.com.cn/thread-184355-1-1.html
BeautifulSoup模块+select()函数很给力,不妨试试?
是的,最近有在看了 狗宁 发表于 2020-11-25 09:16
右键 copy xpath 然后找href
这样好像会有错误吧 假面的假面 发表于 2020-11-24 23:58
好的,我试试看
页:
[1]