Joke Collection Website - Mood Talk - Address resolution and download of mango TV video

Address resolution and download of mango TV video

Play the page address with Mango TV/V/10167938/c/2942052.html? For example, how to get the real video address through parsing.

The video ID of Mango TV can be obtained from the address of the playing page. In the above address of the playing page, 2942052 is the video ID.

Request interface/player/video with video ID as parameter? Retry =1&; Video_id=2942052 The JSON data returned is as follows:

We can see that * * * in the stream list has three definitions, and * * * in the stream_domain list has three domain names. If you choose an ultra-clear URL, then add any one of the three domain names to the URL to form the address /vod.do? fmt = 2 & amppno = 1000 & amp; FID = 593 b 588623979 1678 a 15 C4 a 872 a 60 b 08 & amp; Now =1478094895 &; gsid = 79 B4 EB 17ce 3b 44 1084 b 4828230 fdf DD 7 & amp; file = % 2f MP4 % 2f 20 16% 2f Xinwen % 2Fwjxw _ 46493% 2f 593 b 588623979 1678 a 15 C4 a872 a 60 b 08 _ 20 160 106 _ 1 _ 1 _ 1 _ 65438

Requesting this address will also get data in JSON format:

Where info is m3u8 address, request m3u8 address/MP4/2016/Xinwen/WJXW _ 46493/593B 5886239791678A15A872A 60B 08 _ 20/Kloc-. uuid = 66e 980 da 9e 284 bbe 8222 CAE 7 1 FCC 650 a & amp; t = 58 1a 6306 & amp; pno = 1000 & amp; sign = ccedb 70 160 e 9 136870 FBD 72864 f 1 1bb 2 & amp; win = 3600 & ampsrgid = 2502 1 & amp; urg id = 8 1 & amp; srgids = 2502 1 & amp; NID = 2502 1 & amp; payload = user token % 3d hit % 3d 0% 5er UIP % 3d 2302480 1 & amp; rdur=2 1600。 Range = 0 & Limit rate = 0&FID = 593b5886239791678a15c4a872a60b08 &; Ver=0x03, and obtain the following m3u8 contents:

Lines that do not start with a # sign are part of the video segment address. However, you need to build a complete video segment address. How to construct? We use the browser development tool to observe the final video address as follows:

And the address of m3u8 is like this:

The front parts of these two addresses are the same. Is there any? Now you know how to construct a complete video segment address.