Every modern program for listening to internet radio streams is capable of displaying the title and artist of the track that is being played (assuming that the radio stream is broadcasting the title and artist).
What I am looking for is a program or other method which can write this data to a file in real time.
Linux or Windows is fine. Addons to an existing program are fine. Someone explaining to me how to extract the data from a raw stream would be...at least a start. Anything better than the only two ideas I've had already (both of which are really horrible) would be helpful.
Lousy idea 1) Run your usual music player program and write a script which takes screenshots of the program window and then hack it out from there
Lousy idea 2) For the stream you're interested in, write a script which e.g. uses wget to fetch a web page containing the information from the radio stream's home page and hack it out from there.
I don't think I really need to say much more about how bad these solutions are. Anyone have a better one??

