up vote 7 down vote favorite
3
share [g+] share [fb]

A website url has "hidden" some mp3 files by embedding them as shockwave files, as follows:

<span class="caption"><!-- Odeo player --><embed src="http://odeo.com/flash/audio_player_tiny_gray.swf"quality="high" name="audio_player_tiny_gray" align="middle" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" flashvars="valid_sample_rate=true external_url=http://podcast.cbc.ca/mp3/sundayeditionstream_20081125_9524.mp3" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></span>

How can I download the files for off-line listening?

I've found two methods:

1. The StackOverflow Method

Create a new local html file with just the links eg

<a href="http://podcast.cbc.ca/mp3/sundayeditionstream_20081125_9524.mp3">Sunday Edition 25Nov2008</a>

Open the file in the browser, right click the link and File > Save Link As.

2. The SuperUser Method

Install the Firefox addin Iget. (Be sure to use the right version for your Firefox version.)

Tools > Downloads > Enter url in field.

Are there any other ways?

link|improve this question
1  
You can skip creating a local file and just put "podcast.cbc.ca/mp3/sundayeditionstream_20081125_9524.mp3"; in your address bar. – hyperslug Jul 22 '09 at 22:10
That would only work providing you didn't have any multimedia plugins active (VLC, WMP etc). – Ehtyar Jul 22 '09 at 23:21
On safari, hold down option while clicking link. – Mk12 Oct 17 '09 at 23:13
feedback

13 Answers

up vote 1 down vote accepted

On Linux, use 'wget' on the command line:

wget http://podcast.cbc.ca/mp3/sundayeditionstream_20081125_9524.mp3

If you want a similar tool on Windows, you could install wget via Cygwin or use one of the GNU Win32 ports.

On Mac OS X, there's cURL, which appears to have a Windows build.

link|improve this answer
3  
Mac's don't have wget installed by default. It does have curl. – Telemachus Jul 23 '09 at 0:29
Ah, thanks for the correction. – Joe Holloway Jul 23 '09 at 4:29
I selected this as the most correct answer because it addresses multiple operating systems. – Michelle Aug 6 '09 at 19:34
feedback

3. The command-line method

Download/install/build wget or similar and download from the commandline:

wget http://some/url
link|improve this answer
feedback

I use DownThemAll for this. You can just copy the link, open the manager window and select 'Add URL', assuming it doesn't pick the links up when run normally.

link|improve this answer
feedback

Here is a way to create a download page on the fly without leaving your browser.

  1. Navigate to the web page (which I'm guessing is http://www.cbc.ca/thesundayedition/ ?).
  2. Type this JavaScript into your address bar:

javascript:document.documentElement.innerHTML.match(/external_url=([^\"]*\.mp3)\"/);document.write('<'+'a href="'+RegExp.$1+'">download<'+'/a>')

link|improve this answer
feedback

When using Firefox then you don't need any add-ons. Just go to menu Tools ยป Page Info (or press Control/Command-I) and select the Media tab. Here you'll see all media (images, video, audio, ...) embedded in the page, including a "Save As..." button.

link|improve this answer
I think the question's intent was different - what if you're just started out with a URL? – Derek Morrison Jan 31 at 15:14
@Derek, the Media tab shows all URLs that are embedded in the page one is viewing. One only needs the page URL, not the URLs of all that is embedded, to see that list. – Arjan Jan 31 at 15:24
feedback

There is a very handy website for this issue:

http://www.downloadbyurl.com

link|improve this answer
Now that's handy! – Johnny W Jan 27 at 13:41
feedback

I always use the wget application on linux or axel if I know that I won't overload the server with 4 connections and I want it faster. Both are available on windows with Cygwin. If it's on a site which I will scrape often, create a script to extract the URL for me and run similar.

link|improve this answer
There is also a stand-alone wget for Windows (Cygwin is not needed) - so wget can be used from BAT files. A direct download URL is: users.ugent.be/~bpuype/wget/wget.exe – Peter Mortensen Jul 29 '09 at 17:23
feedback

There's also a plethora of clipboard-monitoring download apps that will start downloading a file when it is copied to the clipboard if you like that sort of thing. I've used FreeDownloadManager in the past.

link|improve this answer
feedback

For Safari, this can be accomplished by pasting the URL into the downloads window.

link|improve this answer
feedback

If your browser does not support starting a download via a direct url (such as Safari), can't you just copy the URL into the address bar and go File > Save As?

link|improve this answer
Nope, as Ehtyar pointed out, the plugins automatically start playing the mp3, with no apparent way to save the file. – Michelle Jul 23 '09 at 19:41
It would start playing the song, but you should be able to choose Save As from the file menu. I definitely can. – joshhunt Jul 24 '09 at 2:55
No, save as is greyed out. However, you can just hold down option, select the address bar and hit enter to download it instead of playing it. – Mk12 Oct 18 '09 at 2:27
feedback

Using safari all you need to do is open the activity window and then click on the file in the list of files. It should then start downloading the file.

If the media opens in a new window and file, save as is disabled then I I use the following on Mac OS X.

curl -o sundayEdition.mp3 http://podcast.cbc.ca/mp3/sundayeditionstream_20081125_9524.mp3
link|improve this answer
feedback

The other command line method would be Curl which can also read URLs from a file. Alternatively you can write a higher level script that gets the original page, and parses out the URLs to get individually using something like Perl, Python, Ruby, maybe even JScript, or ZSH.

link|improve this answer
feedback

On Safari, you can hold down option while clicking a link to accomplish this.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.