Skip to content

aviyehuda.com

Menu
  • Open Source
  • Android
  • Java
  • Others
  • Contact Me
  • About Me
Menu

How to use fiddler+firefox to download files from streaming sites.

Posted on 06/11/2010

I love discovering new music. Recently I am using blip.fm a lot. I like the idea of being proposed music I would love by someone who has the same taste of music like me. For me, it is the ultimate internet use.

One trouble though, is that it usually takes me at least 3-5 times to hear a song before I would know I actually like it. I have found that the best thing is to download about 10-20 songs to my cellular phone and hear them again and again for a few times.

In this post I will show you how to do that quite easily using fiddler and firefox.

You can also do the same to download other file types like swf movies and so on.

If you are using other browser than Firefox, that’s OK, it can also work with other browsers.

Step 1 – Download and install Fiddler

  • Fiddler is a sniffing software which I like very much. It is super easy.
  • Please download it from here and install it.
  • You will also have to install the script editor add-on. Please download it from here. This add on lets you do a verity of actions to your web traffic, it is really a very useful add on.

Step 2 – Configure the script

  • Open Fiddler.
  • Go to “FiddlerScript” tab on the top right tab bar.
  • Go to “OnBeforeResponse” function. You can do that by choosing it from the “Go to” drop down list.
  • Paste this snippet to the end of the function body.
  • if(oSession.url.Contains(".mp3")){
             FiddlerApplication.Log.LogFormat("downloading "+oSession.url);
             System.Diagnostics.Process.Start("firefox.exe",oSession.url);
    }

    This script will cause the fiddler to execute firefox with the link of of each mp3 file he sniffs in the network traffic. Notice I am also appending a small parameter at the end of the file URL. I do this so the fiddler will not go into a loop and download the same file again and again.

  • Press the “Save Script” button at the top of the script editor window.


fiddler

Step 3 – configure your firefox to download mp3 automatically

  • You may or may not need to do this step because your firefox is maybe already configured to download mp3 files.
  • If it’s not or you are not sure please open up your firefox. Go to “Tools” > “options” > “Applications”. Type “mp3” in the search input field and make sure that the action for this file type is “Save File”. Press “OK” and that is it.


firefox

Step 4 – start to download

  • Go to blip.fm (or any other mp3 streaming site) and start listen to mp3s.
  • Notice that in blip.fm you can listen to swf or mp3 files. The script I have shown you above, downloads only mp3s. You van easily change it to download swf files.
  • Notice that blip.fm gives you the ability to skip the videos and just focus on the mp3s, this is even better for our use.

And that it is. While you listen to the music, for every mp3 the fiddler will sniff, it will fire up the firefox which will than start to download the mp3s to your computer automatically.
Actually you don’t even have to listen to the whole song, you can just wait for a few seconds until the song starts and go right away to the next song.

3 thoughts on “How to use fiddler+firefox to download files from streaming sites.”

  1. Jaime says:
    28/11/2011 at 07:59

    This is very cool dude. Thanks!!

    Reply
  2. ashi says:
    07/01/2012 at 08:34

    hi,
    i tried above i downloaded fiddler2 and also the script editor…
    also pasted the code but
    but
    i have problem in step 3.
    cant find mp3

    Reply
    1. Avi says:
      07/01/2012 at 09:28

      Try searching “Mpeg layer-3” instead.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


About Me

REFCARD – Code Gems for Android Developers

Categories

  • Android
  • AWS
  • AWS EMR
  • bluetooth
  • Chrome extension
  • ClientSide
  • Clover
  • Coding Coventions
  • Data Lake
  • General
  • GreaseMonkey
  • Hacks
  • hibernate
  • hibernate validator
  • HTML5
  • HtmlUnit
  • Image Manipulation
  • Java
  • Java Technologies
  • JavaScript
  • Java_Mail
  • JEE/Network
  • Job searching
  • Open Source
  • Pivot
  • projects
  • Pure Java
  • software
  • Spark
  • Trivia
  • Web development

Archives

  • March 2022 (1)
  • January 2022 (1)
  • January 2021 (1)
  • December 2018 (1)
  • August 2018 (1)
  • October 2013 (1)
  • March 2013 (1)
  • January 2013 (2)
  • July 2012 (1)
  • April 2012 (1)
  • March 2012 (1)
  • December 2011 (1)
  • July 2011 (1)
  • June 2011 (1)
  • May 2011 (2)
  • January 2011 (1)
  • December 2010 (1)
  • November 2010 (3)
  • October 2010 (4)
  • July 2010 (1)
  • April 2010 (2)
  • March 2010 (1)
  • February 2010 (2)
  • January 2010 (5)
  • December 2009 (10)
  • September 2009 (1)
 RSS Feed
1d96f52e7159fe09c7a3dd2a9816d166-332
©2023 aviyehuda.com | Design: Newspaperly WordPress Theme