Home > other > Xpath search tags have been empty list is returned? Try many methods or not
Xpath search tags have been empty list is returned? Try many methods or not
Time:09-27
Due to crawl is good-looking video, inside page extraction and super clear video link, but the use of xpath search label, from the complete path to copy Google xpath path, the returned is an empty list Responses=requests. Get (url_video, headers=headers) Data_res=responses. The text Html_ele=etree. HTML (data_res) Title=html_ele. Xpath ('/HTML/body/div/div/div [1]/div [1]/div/hk - controls/hk - definition/ul/li [3] ') Print (the title)
Consult everybody a great god, and what reason is this?
CodePudding user response:
Nobody?? Where is the great god
CodePudding user response:
Asynchronous loading video sites, so can't directly extracted from the HTML source code, can be found by the network panel developer tools links for loading