How to Download Flash Videos from the Web with curl
If you’ve ever wondered how to extract flash videos (or any others) from a website, here’s a good way to do it using Safari and the command line download tool ‘curl’.
Here’s the description from Chris Martin:
“So say you come across a video online that is so great you would really like to save a copy locally to watch over and over again (assuming you are allowed to). For sites such as youTube and the other majors this might not be a problem… there are numerous tools available to grab content. However, some sites don’t work with the commonly available tools, or maybe you would just rather use tools that are already included in OSX, well here’s how.”
Essentially what you do is view the page source, then locate the .swf or .flv file in the source code of the webpages HTML.
Then, once you have the source URL from the HTML, you can plug that into the curl command to download the file for example (this is not a live flash file its just sample syntax) this would download a flv file this way:
curl -O http://samplewebsite/sample.flv
The file would download like any other.
If you want more a bit more details about this, you can check out the easy to follow how-to on his site:
Pretty cool trick, huh?