Internet
How to
Newspapers
Twitter
SEO advice
Categories: Featured, How to, Internet, Newspapers. Tags:

How to bookmark a moving target: the latest minute-by-minute Guardian report

January 26, 2011 No Comment

Success! One of my New Year's resolutions for newspapers was for the Guardian to implement a short URL that always redirected to the latest minute by minute report - that way I could bookmark the short URL and I wouldn't always have to go via the Guardian's Football Minute by Minute tag page to find the page I want.

The page I want to avoid

I don't want to go via here to get to where I want

(Saving that click and page load is important as when I'm at the Emirates it's really hard to get a connection on my mobile).

After Martin Belam had pointed me in the direction of Yahoo Pipes, which I utterly failed to get to grips with, and some relevant RSS feeds, I asked on Quora how I could do what I wanted. And Darren Levy gave me the answer - both a Yahoo Pipes method and some PHP I could implement directly:

$mylink= array();

$links = simplexml_load_file
('http://www.guardian.co.uk/football/football+tone/minutebyminute/rss');

foreach ($links->channel->item as $item)
{
$link = $item->link ;
$mylink = array(0=>$link);
break;
}

header( "Location: ".$mylink[0] ) ;

?>

I've saved that code at this URL: http://www.malcolmcoles.co.uk/guardian-mbm.php. So if you bookmark that (or just click it for now), whenever you open it you'll get automatically redirected to the latest minute by minute report from the Guardian.

I'd like to tell you how it works. Um, but I don't really know. It obviously looks for the most recent URL and then location clearly does some sort of redirect.

Thanks to everyone involved. If you want to do something similar on a different subject (maybe cricket over by overs or the latest blogpost in a series or whatever) just replace the URL in the PHP. Here's more on the Guardian's tags and all the RSS feeds they can provide you with.

You might also like
  1. Newspapers on Twitter – how the Guardian, FT and Times are winning
  2. Guardian and Times the most cited UK papers on wikipedia
  3. Tanya Gold in the Guardian: advert #fail
  4. Guardian hides user profiles from google. An SEO trick?
  5. Pre Budget Report: Business Link wastes money on Google adverts

Share this post

Follow me on Facebook or Twitter

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.