Home > other >  [python] small white help, someone to help me to analyse the pears video video website real?
[python] small white help, someone to help me to analyse the pears video video website real?

Time:10-27

I want to climb for a video in the video, below is the url
https://www.pearvideo.com/video_1703247

This video is should be dynamically loaded by caught tool, find a packet in XHR, here's the Response inside there should be a video real address,

 

The import requests
The from LXML import etree
Headers={
'the user-agent' : 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10 _12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36 '
}
Url="https://www.pearvideo.com/videoStatus.jsp? ContId=1703247 & amp; MRD=0.9431604561367266 '
Data=https://bbs.csdn.net/topics/requests.get (url=url, headers=headers). Json ()
Print (data)

But down is not the screenshot below, should excuse me I how to find the real address of the video?



PS. The small white is a self-study of the crawler tutorial, but this tutorial code is hanged, so small white write their own, haven't learned the selenium, so bosses don't speak too high, I only learned BS4, XPATH, regular,
  • Related