How can I use Python to download a video from a website?












0















There's a really cool course on Kadenze on machine learning.



Much like coursera-dl does, I would like to download all of the course videos so I can reference them later.



For simplicity's sake, let's assume I've logged in and have access to the page with the videos on it.



How can I download the video(s) on the page with Python?



Extra info (will be edited as more information is found):




  • There doesn't seem to be a specific URL for each video that I can
    access. (Pressing "Copy this link" on the buttons that go to the next
    videos results in javascript:void(0); on the clipboard.










share|improve this question























  • Try this: stackoverflow.com/questions/22676/…

    – Jameson
    Oct 24 '16 at 21:57











  • @Jameson The thing is, the videos don't have a specific URL that I can find, otherwise I would do that in a heartbeat. (See "Extra Info"). Thanks though.

    – Pro Q
    Oct 24 '16 at 22:00






  • 2





    maybe use some browser extension to download all videos on page. It needs less work.

    – furas
    Oct 24 '16 at 22:01











  • Check this answer: Answer by Ngenator

    – rakshith1124
    Oct 24 '16 at 23:44











  • @furas Surprisingly, that worked. Thank you! Apparently I don't need to write a program for it after all. Right now I'm using "Video Downloader Professional" on Chrome. It doesn't seem to see all the videos yet, but I'm sure that's just troubleshooting.

    – Pro Q
    Oct 25 '16 at 4:55
















0















There's a really cool course on Kadenze on machine learning.



Much like coursera-dl does, I would like to download all of the course videos so I can reference them later.



For simplicity's sake, let's assume I've logged in and have access to the page with the videos on it.



How can I download the video(s) on the page with Python?



Extra info (will be edited as more information is found):




  • There doesn't seem to be a specific URL for each video that I can
    access. (Pressing "Copy this link" on the buttons that go to the next
    videos results in javascript:void(0); on the clipboard.










share|improve this question























  • Try this: stackoverflow.com/questions/22676/…

    – Jameson
    Oct 24 '16 at 21:57











  • @Jameson The thing is, the videos don't have a specific URL that I can find, otherwise I would do that in a heartbeat. (See "Extra Info"). Thanks though.

    – Pro Q
    Oct 24 '16 at 22:00






  • 2





    maybe use some browser extension to download all videos on page. It needs less work.

    – furas
    Oct 24 '16 at 22:01











  • Check this answer: Answer by Ngenator

    – rakshith1124
    Oct 24 '16 at 23:44











  • @furas Surprisingly, that worked. Thank you! Apparently I don't need to write a program for it after all. Right now I'm using "Video Downloader Professional" on Chrome. It doesn't seem to see all the videos yet, but I'm sure that's just troubleshooting.

    – Pro Q
    Oct 25 '16 at 4:55














0












0








0








There's a really cool course on Kadenze on machine learning.



Much like coursera-dl does, I would like to download all of the course videos so I can reference them later.



For simplicity's sake, let's assume I've logged in and have access to the page with the videos on it.



How can I download the video(s) on the page with Python?



Extra info (will be edited as more information is found):




  • There doesn't seem to be a specific URL for each video that I can
    access. (Pressing "Copy this link" on the buttons that go to the next
    videos results in javascript:void(0); on the clipboard.










share|improve this question














There's a really cool course on Kadenze on machine learning.



Much like coursera-dl does, I would like to download all of the course videos so I can reference them later.



For simplicity's sake, let's assume I've logged in and have access to the page with the videos on it.



How can I download the video(s) on the page with Python?



Extra info (will be edited as more information is found):




  • There doesn't seem to be a specific URL for each video that I can
    access. (Pressing "Copy this link" on the buttons that go to the next
    videos results in javascript:void(0); on the clipboard.







javascript python video






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 24 '16 at 21:55









Pro QPro Q

93621329




93621329













  • Try this: stackoverflow.com/questions/22676/…

    – Jameson
    Oct 24 '16 at 21:57











  • @Jameson The thing is, the videos don't have a specific URL that I can find, otherwise I would do that in a heartbeat. (See "Extra Info"). Thanks though.

    – Pro Q
    Oct 24 '16 at 22:00






  • 2





    maybe use some browser extension to download all videos on page. It needs less work.

    – furas
    Oct 24 '16 at 22:01











  • Check this answer: Answer by Ngenator

    – rakshith1124
    Oct 24 '16 at 23:44











  • @furas Surprisingly, that worked. Thank you! Apparently I don't need to write a program for it after all. Right now I'm using "Video Downloader Professional" on Chrome. It doesn't seem to see all the videos yet, but I'm sure that's just troubleshooting.

    – Pro Q
    Oct 25 '16 at 4:55



















  • Try this: stackoverflow.com/questions/22676/…

    – Jameson
    Oct 24 '16 at 21:57











  • @Jameson The thing is, the videos don't have a specific URL that I can find, otherwise I would do that in a heartbeat. (See "Extra Info"). Thanks though.

    – Pro Q
    Oct 24 '16 at 22:00






  • 2





    maybe use some browser extension to download all videos on page. It needs less work.

    – furas
    Oct 24 '16 at 22:01











  • Check this answer: Answer by Ngenator

    – rakshith1124
    Oct 24 '16 at 23:44











  • @furas Surprisingly, that worked. Thank you! Apparently I don't need to write a program for it after all. Right now I'm using "Video Downloader Professional" on Chrome. It doesn't seem to see all the videos yet, but I'm sure that's just troubleshooting.

    – Pro Q
    Oct 25 '16 at 4:55

















Try this: stackoverflow.com/questions/22676/…

– Jameson
Oct 24 '16 at 21:57





Try this: stackoverflow.com/questions/22676/…

– Jameson
Oct 24 '16 at 21:57













@Jameson The thing is, the videos don't have a specific URL that I can find, otherwise I would do that in a heartbeat. (See "Extra Info"). Thanks though.

– Pro Q
Oct 24 '16 at 22:00





@Jameson The thing is, the videos don't have a specific URL that I can find, otherwise I would do that in a heartbeat. (See "Extra Info"). Thanks though.

– Pro Q
Oct 24 '16 at 22:00




2




2





maybe use some browser extension to download all videos on page. It needs less work.

– furas
Oct 24 '16 at 22:01





maybe use some browser extension to download all videos on page. It needs less work.

– furas
Oct 24 '16 at 22:01













Check this answer: Answer by Ngenator

– rakshith1124
Oct 24 '16 at 23:44





Check this answer: Answer by Ngenator

– rakshith1124
Oct 24 '16 at 23:44













@furas Surprisingly, that worked. Thank you! Apparently I don't need to write a program for it after all. Right now I'm using "Video Downloader Professional" on Chrome. It doesn't seem to see all the videos yet, but I'm sure that's just troubleshooting.

– Pro Q
Oct 25 '16 at 4:55





@furas Surprisingly, that worked. Thank you! Apparently I don't need to write a program for it after all. Right now I'm using "Video Downloader Professional" on Chrome. It doesn't seem to see all the videos yet, but I'm sure that's just troubleshooting.

– Pro Q
Oct 25 '16 at 4:55












1 Answer
1






active

oldest

votes


















0














2019 Update



I know very late to this game, but youtube-dl seems ideal for this purpose.
The name is a misnomer they cover many more video hosting sites (other than youtube), and works very well.






share|improve this answer
























  • For now, this is a link-only answer, which is discouraged on stack overflow - this may be better as a comment unless you’re willing to explain how it works (the relevant code seems to be in downloader/http.py). That said, this is pretty much exactly what I was looking for and I did not know it existed, so thank you!

    – Pro Q
    Jan 20 at 17:13











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f40228160%2fhow-can-i-use-python-to-download-a-video-from-a-website%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














2019 Update



I know very late to this game, but youtube-dl seems ideal for this purpose.
The name is a misnomer they cover many more video hosting sites (other than youtube), and works very well.






share|improve this answer
























  • For now, this is a link-only answer, which is discouraged on stack overflow - this may be better as a comment unless you’re willing to explain how it works (the relevant code seems to be in downloader/http.py). That said, this is pretty much exactly what I was looking for and I did not know it existed, so thank you!

    – Pro Q
    Jan 20 at 17:13
















0














2019 Update



I know very late to this game, but youtube-dl seems ideal for this purpose.
The name is a misnomer they cover many more video hosting sites (other than youtube), and works very well.






share|improve this answer
























  • For now, this is a link-only answer, which is discouraged on stack overflow - this may be better as a comment unless you’re willing to explain how it works (the relevant code seems to be in downloader/http.py). That said, this is pretty much exactly what I was looking for and I did not know it existed, so thank you!

    – Pro Q
    Jan 20 at 17:13














0












0








0







2019 Update



I know very late to this game, but youtube-dl seems ideal for this purpose.
The name is a misnomer they cover many more video hosting sites (other than youtube), and works very well.






share|improve this answer













2019 Update



I know very late to this game, but youtube-dl seems ideal for this purpose.
The name is a misnomer they cover many more video hosting sites (other than youtube), and works very well.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 20 at 14:02









SantinoSantino

132112




132112













  • For now, this is a link-only answer, which is discouraged on stack overflow - this may be better as a comment unless you’re willing to explain how it works (the relevant code seems to be in downloader/http.py). That said, this is pretty much exactly what I was looking for and I did not know it existed, so thank you!

    – Pro Q
    Jan 20 at 17:13



















  • For now, this is a link-only answer, which is discouraged on stack overflow - this may be better as a comment unless you’re willing to explain how it works (the relevant code seems to be in downloader/http.py). That said, this is pretty much exactly what I was looking for and I did not know it existed, so thank you!

    – Pro Q
    Jan 20 at 17:13

















For now, this is a link-only answer, which is discouraged on stack overflow - this may be better as a comment unless you’re willing to explain how it works (the relevant code seems to be in downloader/http.py). That said, this is pretty much exactly what I was looking for and I did not know it existed, so thank you!

– Pro Q
Jan 20 at 17:13





For now, this is a link-only answer, which is discouraged on stack overflow - this may be better as a comment unless you’re willing to explain how it works (the relevant code seems to be in downloader/http.py). That said, this is pretty much exactly what I was looking for and I did not know it existed, so thank you!

– Pro Q
Jan 20 at 17:13




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f40228160%2fhow-can-i-use-python-to-download-a-video-from-a-website%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Callistus III

Ostreoida

Plistias Cous