jjj33 home                                                               Rev.00   -9. Oct. 2010
                                                                         Rev.02   -4. Aug. 2011


                                                                            in Japanese
access counter

 How to store music from "grooveshark" on your computer


As a site where one can listen to free music, there is "grooveshark" available.
In this site, it is an advantage that one can search music by specifying character strings
included in the title of the music, in the player name and in the album name.

This article shows a method to store music from "grooveshark" on one's computer.
This method is based on contents from the next site with some added supplements.

http://odie5533.com/downloading-mp3-songs-from-grooveshark/

This approach to capture the packets flowing on the network, from which only those related
to the MP3 taken out, is a simple and pure method.

(Pretty tough to get used to using)

Besides this method, as web information, it is talked variously that many software
like the following, they can store music (sreaming data delivered) on one's computer.

 (1) Music Zilla --- freeware --- NG
 (2) Orbit Grab++ --- freeware --- NG
 (3) YouTube Downloader --- freeware --- NG
 (4) Replay Music --- shareware
 (5) Streaming Audio Recorder --- shareware --- analog
 (6) Audacity --- freeware --- analog

(1), (2) and (3) of the above were actually tried on "grooveshark", but they
did not go well. (bad using?)

Software (3) goes wrong on "grooveshark", but on other sites it's often OK.

On (5) and (6), there is a problem of degradation due to re-digitizing the final
analog signal.


Here, instructions of the simple and pure method are described in sequence below.

1. Obtaining of Wireshark and its installation
   Obtain Wireshark software for the network packet capture, analysis, and storing
   from the following site.
    (Wireshark is a freeware)

http://www.wireshark.org/download.html

   If your computer is on Windows (32-bit) it is better to obtain "Windows PortableApps (32-bit)"
   in the above site.

   At the time of revising this article Wireshark software version is 1.6.1. (24. Jul. 2011)

   On the installation, as prompted by instructions of the screen, default installation is easy.


2. Starting and initializing
(2.1) Start Wireshark, and the next screen appears.



(2.2) At the menu bar of the screen shown above, click [Capture], [Interfaces], and the next screen appears.
      (The content is one example)
      This operation is just once after installing Wireshark.
      At the second time or later, at the menu bar of the screen shown above, click [Capture], [Options],
      and then go to section (3.2).



(2.3) In the screen shown above, under "Description", the names of installed network devices are listed.
      (The content is one example)

      In this screen, click [Start] button in the line of the device that actually used (IP Addr displayed)
      in the devices shown.

      Then the screen disappears and the next screen appears. (The content is one example)

      While network running, packets are being captured and the screen is updated continuously. (the next screen)

      Here, at the menu bar of the next screen, click [Capture], [Stop], and then packet capture is stopped.




3. Start of packet capture with specifying the port
(3.1) Now, the current screen of Wireshark is the screen shown above.
      (The content is one example)

      At the menu bar of the screen shown above, click [Capture], [Options], and the next screen appears.
      (The content is one example)



(3.2) In the screen shown above, in the right side area of "Interface:" line, make sure
      that the device name is the name specified in section (2.3).

      If the device name is different, click ▼ mark button of the right side end, and then open up
      pull-down menus, and select the device name that specified in section (2.3)

      In the screen shown above, click [Capture Filter:] button and the next screen appears.

      In the next screen, select [TCP or UDP ort 80 (HTTP)].



(3.3) In the screen shown above, click [OK] button and the next screen appears.

      In the next screen, make sure that [port 80] is shown in the right side area of
      [Capture Filter:] button.

      Here, not click [Start] button yet.




4. Operations in "grooveshark" screen and in Wireshark screen
(4.1) In "grooveshark" screen, find desired music, and keep staying in the state
      just before the music start. (stay in waiting state)
      The display of "grooveshark" screen is omitted here.

(4.2) In the screen shown above, click [Start] button. --- Packet capture is started,
                                                           if the next screen does not appear.
      If the next screen appears, click [Continue without Saving] button. --- Packet capture is started.



(4.3) In "grooveshark" screen, start playing the music that has stayed in waiting state.

      In the next "grooveshark" screen, when the progress bar (gray bar) stops at the right end
      capturing on MP3 packets has completed even before the music finishes playing.




5. End of packet capture
   Wireshark is awaiting a packet, and the screen appears like the next screen.
   (The content is one example)

   At the menu bar of the next screen, click [Capture], [Stop], and then packet capture is stopped.




6. Selection of packets related to MP3
(6.1) In the screen shown above, into "Filter:" field,
      enter the following character string by man hand.

http.content_type == "audio/mpeg"

      At the second time or later, this string will be memorized, so no manual entry needed.
      That is to say, click ▼ mark button of the right side and then open up pull-down menus, and select
      the string entered first by man hand.

(6.2) Then, at the screen shown above, click the word [Apply].
      the next screen appears, then wait for closing of the screen. (10s to 20s approx.)



When the process ends the screen shown above disappears, and the next screen appears.
(The content is one example)



(6.3) In the screen shown above, in the middle pane, at the bottom of line,
      click character string "Media Type".

      Then the next screen appears, then wait for closing of the screen. (10s to 20s approx.)
      99% after treatment, it may take more time until the end.




7. Storing of mp3 file

(7.1) When the process ends the screen shown above disappears.
      Then, the screen appears shown as previous previous screen. (The content is one example)

      In the previous previous screen, in the middle pane, at the bottom of line again,
      this time right-click character string "Media Type".

      Then, the next pull-down menus appear.



(7.2) At the pull-down menus shown above, click [Export Selected Packet Bytes].
      Then, the screen to save a file appears. (the screen display omission)

      Save the file as any file name of which extension is ".mp3" into specified storage.

By the above, one mp3 file from "grooveshark" has been saved.