newprotest.org: WORLD CUP TICKER

WORLD CUP TICKER

June 09, 2006
by: jovial_cynic
If you're reading this during the World Cup, you'll notice a little game-score ticker in the upper-right section of the text area. If you like it and are using Perl for your website, you can use this code:

use LWP 5.64;

my $browser = LWP::UserAgent->new;
$url = "http://newsimg.bbc.co.uk/sol/shared/bsp/hi/football/in_vision/html/in_vision1.stm";

my $response = $browser->get($url);
$messageBody = $response->content;
$messageBody =~ m/(.*?)/sg;
$title = $1;

print $1;


I've left off the formatting so you can display the ticker any way you want to.

UPDATE: The ticker isn't working properly. BBC news seems to have changed the way they're posting the scores, to my ticker can't grab anything useful. Sucks. I'll see if I can find another good source of the scores.
np category: site
tags:

COMMENTS for WORLD CUP TICKER


add comments. you are limited to 5,000 characters:

<< your name
<< your email (won't be displayed)
<< your website / location
<< type these numbers: 319470 (plus 0NE)

(html -enabled- / no scripts)

<< Comments temporarily disabled >>

Rules: Don't spam. Don't harrass. Don't be a jerk. Your IP address (54.92.167.9) will be logged.