Get the "now playing" ticker from 6 Music's website. They've got a Macromedia Flash application for this, but a quick capture with Ethereal showed the URL. Fortunately this URL spits out a small amount of XML. A quick snippet later, and Flash is no longer needed.
Unfortunately the BBC no longer support streaming of their radio stations via Ogg Vorbis, as detailed here.
#!/usr/bin/perl use warnings; use strict; use LWP::Simple; use XML::Simple; my $url = "http://www.bbc.co.uk/6music/ro/flash_data.sssi"; my $xml = get($url); unless($xml) { die "Couldn't get xml out of $url: $!\n"; } my $ref = XMLin($xml, forcearray=>1); foreach my $block (@{$ref->{page}}) { my $lines = $block->{line}; print join "\n", @$lines; print "\n"; }
In reply to What's that record? by davis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |