这样可以拿到,但是 我发现里面的mp4 不可下载啊 不知道咋回事
import requests,random
url="https://www.pearvideo.com/videoStatus.jsp?"
mrd=str(random.random());
params={
'contId': '1732855',
'mrd': mrd
}
headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36',
'Cookie': '__secdyid=dba3ee95d2d866dfebc21023fe5936d17737768b9545fbc5021624749764; acw_tc=781bad3116247497640498500e05a5e2ea4ca570ac75959e8112fccb8dc54d; JSESSIONID=427B7C371F35DDA2CCB59E06CE599242; PEAR_UUID=052064b3-d07d-48c2-aff3-b172ce585e55; _uab_collina=162474976832900296017793; p_h5_u=6716E8E6-B42B-48CF-922B-663A084E8896; Hm_lvt_9707bc8d5f6bba210e7218b8496f076a=1624749769; Hm_lpvt_9707bc8d5f6bba210e7218b8496f076a=1624749769; UM_distinctid=17a4aa202265f4-09cbe07c49f3ae-6373264-15f900-17a4aa2022760e; CNZZDATA1260553744=746164291-1624747203-%7C1624747203; SERVERID=a7cc60ddba048546c9441d2558c201d4|1624749771|1624749764',
'Host': 'www.pearvideo.com',
'Referer': 'https://www.pearvideo.com/video_1732855'
}
res=requests.get(url=url,headers=headers,params=params)
print(res.json())
'''
PS D:\wp> py douban.py
{'resultCode': '1', 'resultMsg': 'success', 'reqId': '7febf81e-7419-4561-bbad-ef26de66e615', 'systemTime': '1624749907857', 'videoInfo': {'playSta': '1', 'video_image': 'https://image2.pearvideo.com/cont/20210622/11980839-103454-1.png', 'videos': {'hdUrl': '', 'hdflvUrl': '', 'sdUrl': '', 'sdflvUrl': '', 'srcUrl': 'https://video.pearvideo.com/mp4/third/20210622/1624749907857-11980839-103436-hd.mp4'}}}
PS D:\wp>
'''
|