Ask HN: How to rip videos from sites like CNN.com?
What is the best way to rip videos from "streaming only" sites like CNN.com? An example of some footage I'd like to get is:
http://www.cnn.com/2011/POLITICS/09/07/republican.debate/index.html?hpt=hp_t1
I examined the page with a HTTP Debugger and also viewed source code but could not seem to find the original source URL of the video. I was wondering if it is possible to find the URL of the video somehow and if it is, how?
Thank in advance for any insight you may provide! :-)
Also, it has just crossed my mind that this type of question might not be acceptable here, since you're not really "supposed" to download videos from streaming only sites. If this type of question is not acceptable please politely let me know.
EDIT: I intend to proceed only after obtaining the copyright owners permission.
10 comments
[ 2.9 ms ] story [ 36.5 ms ] threadSee, e.g., the Daily Show, which does not license the news footage it shows.
At this point I am mostly curious about the theory. I am curious how a hacker would go about finding the URL and download the files themselves. I looked at Youtube source code and examined it with a HTTP debugger and can't seem to figure out the URL of where the video is stored but I know it is possible because the JDownloader program does it. I am sure that I, along with many here, would be able to benefit from knowing how to download from various "streaming only" video websites.
Colbert and John Stewart do it all the time and I doubt they ask for permission for every single little clip. It would count as 'fair use'.
http://www.orbitdownloader.com/
Use Orbit Downloader, it rips everything, I've been using it for a year or two now, it's amazing. Open up Grab++ within Orbit, reload the page and the video will show up in Grab++, select it, hit download and it's yours.
The method that Skalman posted using the Firefox Web Console works perfectly as well, although in the CNN video that I posted above, that method seems to download a .flv file, whereas your method seems to be downloading a .mov file. Interesting....
EDIT: Both the .flv and the .mov seem to be the same file. They are both exactly 11,840,167 bytes, so that leads me to believe that they are the same file. It is interesting however that your method and Skalman's method download the same exact file just with a different file extension. I wonder why this is.
I don't have a generic way of extracting this information from any site, but looking at those network sources that are used is always a good place to start. Using extensions such as Flashblock will let you control when you're going to start downloading, and there will be fewer URLs to look through.