Home > other >  Could you tell me why I use xpath parsing can not get what I want results
Could you tell me why I use xpath parsing can not get what I want results

Time:02-17

Want to download page, this part of parsing

Google right click to get full XPath link is like this:
/HTML/body/div [3]/div [1]/div [5]/div [1]/div [2], a [2]
My code:
 


Url="https://nj.zu.ke.com/zufang/caochangmendajie/"

Page=etree. HTML (Download. DownloadPage (url)) # Download page, access to pages

Nums=page. Xpath ('/HTML/body/div [3]/div [1]/div [5]/div [1]/div [2], a [2]/text () ')
Print (nums)

Could you tell me why the result is empty
  • Related