python 视频下载,下载有固定链接的视频

url="http://avideo.babybus.com/201903271550/3eaef0e128b0cbe7cde481e6f0b17ebe/storage/video/1/7a8baf3c/1196_540.mp4"
r = requests.get(url, stream=True)
with open('name.mp4', "wb") as mp4:
    for chunk in r.iter_content(chunk_size=1024 * 1024):
        if chunk:
            mp4.write(chunk)

猜你喜欢

转载自blog.csdn.net/u010590983/article/details/88847251