Figuring out the URL of a radio stream

I like to work hearing music, especially classic music. I also like Radio Clásica, the classical music radio of the Spanish public radio. In rhythmbox it is easy to enter a new radio, just entering the URL of the radio stream in the "Properties" field of the radio.

The problem is 1) that some radios like Radio Clasica change this URL often, 2) increasingly the web pages of the radios where the stream is included use javascript and the stream url cannot be seen directly in the html source of the page.

For this "wireshark" comes handy. This is an application that analyzes and lists all network connections of a system. So install wireshare if you don't have it:

sudo apt-get install wireshark

You have to start wireshark as superuser otherwise it cannot access all the network information:

sudo wireshark

You have to choose "any" stream, and once the streams are show, in "display filter" write "http.request". Somewhere in the list of connections shown the radio stream URL will be shown, and hopefully it will be easy to recognize.