开发者

unable to url from this string using xpath?

开发者 https://www.devze.com 2023-02-28 00:31 出处:网络
I want to get the url of the Downlo开发者_如何学Cad hyper link from this link: http://mp3skull.com/mp3/aadat.html

I want to get the url of the Downlo开发者_如何学Cad hyper link from this link: http://mp3skull.com/mp3/aadat.html This is the string that I have written: //div[1]/[text() = 'Download'] (and this is only for the first object you ll see what I mean). What am I doing wrong here? If possible could you give me the correct string?

thanks, TC


the following xpath retrieve the first download link:

/html/body/div/div[2]/div/div/div[2]/div[3]/div/div[2]/a

Not very smart, I would try to get all download links with something like:

//div/div[2]/a

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号