Ta. Intriguingly the other URL works for radios 1,2,3 and 6music.
----- Original Message ---- From: Brian Butterworth <[EMAIL PROTECTED]> To: [email protected] Sent: Tuesday, 20 May, 2008 10:25:43 AM Subject: Re: [backstage-developer] Accessing http://www.bbc.co.uk/programmes/a-z from PHP it is http://www.bbc.co.uk/radio4/programmes/schedules/fm/2008/05/20 or http://www.bbc.co.uk/radio4/programmes/schedules/lw/2008/05/20 2008/5/20 Iain Emsley <[EMAIL PROTECTED]>: Using this URL (http://www.bbc.co.uk/radio4/programmes/schedules/2008/04/28.xml), I've got (same with the .json instead of .xml): Unable to find template schedules/show_outlets at Controllers/Schedules.pm line 326 Iain ----- Original Message ---- From: Paul Clifford <[EMAIL PROTECTED]> To: [email protected] Sent: Monday, 19 May, 2008 8:54:57 PM Subject: Re: [backstage-developer] Accessing http://www.bbc.co.uk/programmes/a-z from PHP We updated the /programmes site today and there are some new views that might be of use... See all programmes on a service with broadcasts +/- 7 days from now at /:service/programmes/a-z http://www.bbc.co.uk/bbcfour/programmes/a-z http://www.bbc.co.uk/6music/programmes/a-z Add /all to remove the 7 day restriction, or /player to show just the programmes with episodes available in iPlayer: http://www.bbc.co.uk/radio1/programmes/a-z/all http://www.bbc.co.uk/radio3/programmes/a-z/player Search within a service by adding "/by/:search" after "/a-z": http://www.bbc.co.uk/radio4/programmes/a-z/by/e http://www.bbc.co.uk/bbcone/programmes/a-z/by/doctor http://www.bbc.co.uk/bbctwo/programmes/a-z/by/food/all Or search within all radio, all tv (soon), or all BBC services: http://www.bbc.co.uk/radio/programmes/a-z/by/chris/player http://www.bbc.co.uk/tv/programmes/a-z/by/east (soon) http://www.bbc.co.uk/programmes/a-z/by/skating/all With one known and soon to be fixed exception, all the /programmes pages should be valid XML (and XHTML!), and hopefully easy to process with XPath etc. Not new, but you can fetch schedule data through the /programmes site. Today's schedules: http://www.bbc.co.uk/radio4/programmes/schedules/fm http://www.bbc.co.uk/bbc7/programmes/schedules Or a schedule for a particular date: http://www.bbc.co.uk/bbcfour/programmes/schedules/2008/04/28 http://www.bbc.co.uk/bbctwo/programmes/schedules/england/2008/05/22 (Unfortunately, BBC One and BBC Two data outside the London and England regions can be patchy; we're working on improving that.) Add .xml to the end of a schedule URL to get an XML representation, or .json for JSON. The format of the .xml and .json representations isn't fixed yet, but we're interested in any feedback from people using them. On Sat, May 17, 2008 at 3:38 PM, Brian Butterworth <[EMAIL PROTECTED]> wrote: > I wrote some code a while ago that goes though the BBC programme catalogue > at > > http://www.bbc.co.uk/programmes/a-z > > and creates a database table that I used to work out what the correct > iPlayer picture code to use for each, matching them up against the programme > schedules from > > http://www0.rdthdo.bbc.co.uk/cgi-perl/api/query.pl?method=bbc.schedule.getProgrammes&channel_id=$strChannel&start=$strDTS&end=$strDTE&limit=100&detail=schedule > > For some reason I can access http://www.bbc.co.uk/programmes/a-z from a > browser, but doing a > file_get_contents("http://www.bbc.co.uk/programmes/a-z") from PHP just locks > up. > > Is this intentional? > > I'm just having another go at making a 'what's on now' iGoogle theme for BBC > channels... > > Brian Butterworth > - Sent via the backstage.bbc.co.uk developer discussion group. To unsubscribe, please send an email to [EMAIL PROTECTED] with unsubscribe backstage-developer [your email] as the message. ________________________________ Sent from Yahoo! Mail. A Smarter Email. -- Please email me back if you need any more help. Brian Butterworth http://www.ukfree.tv - independent digital television and switchover advice, since 2002 __________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

