Download Meipai video
Get user ID
Search for users through the web page and get user ID
Get the video address in the page
After obtaining the user ID https://www.meipai.com/user/userid
, access through the address . The data-video
tag can be found in the returned html page, and its content is the video address, which can be obtained through regular rules (?<=data-video=").*(?=")
, all data-video tags.
Video address decryption
The video address obtained at this time is the encrypted address, which needs to be decrypted to obtain the real address. For decryption, please refer to this blog post. After decryption, you can obtain the real address and download the video through the requests library.