Python download Web-easy-public-open-class video

Source: Internet
Author: User
Import requestsurl= ' http://v.stu.126.net/mooc-video/nos/mp4/2016/03/19/1004187130_ 5b0f0056936d4f78a23ead4b148e9a49_sd.mp4 ' R=requests.get (URL) with open ("f://mathematical analysis. mp4", "WB") as Code:    Print (" Start download File ")    code.write (r.content) print (" File download succeeded ")

This is the code, only download with requests module Python3 download URL is my own on the page, such as the video is in the audio tag, here is the H5 playback mode, Flash play I do not know how to download,

If you want to bulk download, you need to analyze the page, this page should also have the next section of the link, and then crawl it, maybe it should open a multi-threading is appropriate

Python download Web-easy-public-open-class video

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.