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

CodePudding user response:

refer to the second floor Hajo_ response:
asynchronous loading video website, so I can't directly extracted from the HTML source code, can be found through the network in the developer tools panel loaded links for

In the network to take only the standard definition of links, but there is no super clear

CodePudding user response:

reference 3 floor walk, sound response:
Quote: refer to the second floor Hajo_ response:

Asynchronous loading video website, so I can't directly extracted from the HTML source code, can be found through the network in the developer tools panel loaded links for

In the network to take only the standard definition of links, but not super clear

In hd, first should appear hd interface URL

CodePudding user response:

Hajo_
reference 4 floor response:
Quote: refer to the third floor walk, sound response:
Quote: refer to the second floor Hajo_ response:

Asynchronous loading video website, so I can't directly extracted from the HTML source code, can be found through the network in the developer tools panel loaded links for

In the network to take only the standard definition of links, but not super clear

In hd, first should appear hd interface URL

In the video playing page, the network can't find the link, and you take a look at the open good-looking video

CodePudding user response:

Head, a great god answers
  • Related