В 19:18 +0100 на 26.02.2014 (ср), [email protected]
написа:
> Hello! I was wondereing if any of you know how to download embedded audio  
> from this website:

> http://www.speakenglish.co.uk/phrases/at_a_restaurant


With a little bit of black Bash magic :) (and Abrowser developers
console to find the tracks URLs)

wget http://www.speakenglish.co.uk/phrases/at_a_restaurant -O -  | \
  grep -E "soundManager\.play.*[a-zA-Z0-9_\\-]+'"  -o | \
  cut -d"'" -f2  | \
  sed -e 's@^@http://speaklanguages.cachefly.net/sound/english/mp3/@g' \
  -e 's/$/.mp3/g' | wget -i -

This will download all files on the page in the current directory.
Better use the attached bash script, because my mail client might have
deformed the one-liner. If you want a different page, theoretically you
only need to change the first URL (at_a_restaurant). If consider this to
be software, then consider that I've released it into the public domain.

Enjoy! :)


Attachment: speakenglish.sh.gz
Description: GNU Zip compressed data

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to