Current location - Quotes Website - Personality signature - What is the algorithmic logic of watermelon video?
What is the algorithmic logic of watermelon video?
Watermelon video parsing principle and source code, using CRC32 signature algorithm, get the video source address.

Watermelon video analysis is divided into three steps: 1. Convert links from different sources into watermelon video web pages. 2. Simulate the PC side to request the video webpage capture interface through the package capture software. Generally, the fetching interface is json.

Firstly, the unique id of the video is obtained, and tag_id is the unique id of the video.

Then get the r value (the r value is a random number) and then calculate the s value.

After the calculation is completed, a request is made by the address.

The video address is base64 encrypted.

The last step is to match the address and decrypt it.

Decrypt to get the real address, and then we can download it.