Saturday, May 22, 2010

How to download Apple trailers with wget

Did you ever try to download a trailer from trailers.apple.com? It doesn't work. Apple is trying to limit downloads to the iTunes application. Here's how you can change your user agent so the download works with wget.

Choose a trailer to download. For example the movie The Scientist produces the link
http://trailers.apple.com/movies/independent/thescientist/thescientist-tlr1_720p.mov

To get the correct URL you have to add the letter 'h' before the resolution. In our example the correct URL will look like this:
http://trailers.apple.com/movies/independent/thescientist/thescientist-tlr1_h720p.mov

Now you can use wget with the parameter -U QuickTime/7.6.4:

wget -U QuickTime/7.6.4 http://trailers.apple.com/movies/independent/thescientist/thescientist-tlr1_h720p.mov

Have fun watching the trailers.

3 comments:

  1. Amazing! That's informative post. I just tried to download Apple trailers with wget and it worked fine for me. All credits goes to you. Thanks a ton!
    digital signature Adobe Acrobat

    ReplyDelete
  2. You may also try this method from http://allavsoft.com/how-to/download-itunes-movie-trailers.html

    ReplyDelete
  3. I often use Allavsoft to download iTunes Movie Trailers to QuickTime version MOV, MP4, AVI, MKV, ASF, HD and any video format compatible with your iPhone, iPad, Apple TV, Blackberry, Android phones and tablets, Toshiba TV, PSP, Zune, etc. You can find it at http://www.allavsoft.com/how-to/download-itunes-movie-trailers.html

    ReplyDelete