Download Meipai video python

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-videotag 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.

See git for complete code

Guess you like

Origin blog.csdn.net/yue1241630499/article/details/108968452