import requests
# Address sends a request to the video source
response = requests.get ( 'video address suffix .mp4')
# For example: https: //video.pearvideo.com/mp4/adshort/20190626/cont-1570535-14059324_adpkg-ad_hd.mp4
# Print binary stream, such as pictures, video and other data
print(response.content)
# Save the video locally.
with open('视频.mp4','wb',) as f:
f.write(response.content)
This figure is to teach us how to get a .mp4 video link