Arrrg!
The last tip was sorta good, but not quite what I need.
The schedule info points to the live feed not the listen again feed
http://www.bbc.co.uk/bbc7/realplayer/bbc7_hi.asx
Listen again links look like this:
http://wm.bbc.co.uk/wms/bbc7coyopa/bbc7_-_monday_1230.wma
I think it is a big server farm where the links are recycled every seven days. I can't figure out how to get a file list. I can only send a link and it works or not. The interesting thing is that different shows start at different times on different days, so there may be a chance that as show that started at an odd time would still be available for more than 7 days it the slot has not been reused.
I may be able to use the schedule data to derive a listen again link by parsing the schedule and using the schedule info to build a url.
''It winds from Chicago to LA.. More than two thousand miles all the way...'' Radical Road Trip on the Information Super Highway
Saturday, April 24, 2010
I think I have something figured out.
This link has program listings for BBC content - - http://backstage.bbc.co.uk/feeds/tvradio/
In the files yo can find a reference to a crid: .
This link drills down into examples of how to a retrieve program link using the crid.
http://www0.rdthdo.bbc.co.uk/services/api/bbc.schedule.getProgrammes.html
http://www0.rdthdo.bbc.co.uk/cgi-perl/api/query.pl?method=bbc.schedule.getProgrammes&channel_id=,BBCSeven&start=2010-04-24T21:42:00Z&end=2010-04-24T23:59:59Z&limit=3
ultimately this is the secret sauce. Plug in the crid: from a look up into the listings files.
http://www0.rdthdo.bbc.co.uk/cgi-perl/api/query.pl?method=bbc.programme.getLocations&programme_id=crid://bbc.co.uk/1187037780
This link has program listings for BBC content - - http://backstage.bbc.co.uk/feeds/tvradio/
In the files yo can find a reference to a crid: .
This link drills down into examples of how to a retrieve program link using the crid.
http://www0.rdthdo.bbc.co.uk/services/api/bbc.schedule.getProgrammes.html
http://www0.rdthdo.bbc.co.uk/cgi-perl/api/query.pl?method=bbc.schedule.getProgrammes&channel_id=,BBCSeven&start=2010-04-24T21:42:00Z&end=2010-04-24T23:59:59Z&limit=3
ultimately this is the secret sauce. Plug in the crid: from a look up into the listings files.
http://www0.rdthdo.bbc.co.uk/cgi-perl/api/query.pl?method=bbc.programme.getLocations&programme_id=crid://bbc.co.uk/1187037780
Sunday, April 18, 2010
Getting the BBC schedule data?
I have been getting data from iplayerconverter and beebotron. I am not sure what source they use, but it may be from the bbc backstage.
I continue to poke around trying to figure out where to get data and how to use it.
This link may have what I am looking for.
I have been getting data from iplayerconverter and beebotron. I am not sure what source they use, but it may be from the bbc backstage.
I continue to poke around trying to figure out where to get data and how to use it.
This link may have what I am looking for.
I got a script running last night that transcoded a stream from the bbc to a .raw on my computer. This is huge for me.
My next task is to figure out how to use parms. Then I will try to figure out an interface to one of the web sites that offer links.
Mac Shell Scripting Primer looks like it is a good beginner reference
IBM bash reference material
make executable scripts - there seems to be some subtlety to figure out
This is a start: To make a file executable and runnable by any user:
chmod a+x myfile
On the mac, you can append .command
Whoo!Hoo! curl is part of the mac osx bash environment. Use it to reterive web pages.
command
vncs:scriptsnips jrmaffeo$ curl http://www.bbc.co.uk/mediaselector/4/asx/b0025zn4/iplayer_intl_stream_wma_lo_concrete
returns
<ASX version="3.0"> <ABSTRACT>http://www.bbc.co.uk/</ABSTRACT> <TITLE>BBC</TITLE> <AUTHOR>BBC</AUTHOR> <COPYRIGHT>(c) British Broadcasting Corporation</COPYRIGHT> <MoreInfo href="http://www.bbc.co.uk/" /> <Entry> <ref href="mms://wm.bbc.co.uk/wms/bbc7coyopa/bbc7_-_tuesday_1800.wma" /><ref href="mms://wm.bbc.co.uk/wms2/bbc7coyopa/bbc7_-_tuesday_1800.wma" /> <MoreInfo href="http://www.bbc.co.uk/" /> <Abstract>BBC </Abstract> </Entry></ASX><br />
There is still a lot more parsing to do, but this is a good way to get the data.
My next task is to figure out how to use parms. Then I will try to figure out an interface to one of the web sites that offer links.
Mac Shell Scripting Primer looks like it is a good beginner reference
IBM bash reference material
make executable scripts - there seems to be some subtlety to figure out
This is a start: To make a file executable and runnable by any user:
chmod a+x myfile
On the mac, you can append .command
Whoo!Hoo! curl is part of the mac osx bash environment. Use it to reterive web pages.
command
vncs:scriptsnips jrmaffeo$ curl http://www.bbc.co.uk/mediaselector/4/asx/b0025zn4/iplayer_intl_stream_wma_lo_concrete
returns
<ASX version="3.0"> <ABSTRACT>http://www.bbc.co.uk/</ABSTRACT> <TITLE>BBC</TITLE> <AUTHOR>BBC</AUTHOR> <COPYRIGHT>(c) British Broadcasting Corporation</COPYRIGHT> <MoreInfo href="http://www.bbc.co.uk/" /> <Entry> <ref href="mms://wm.bbc.co.uk/wms/bbc7coyopa/bbc7_-_tuesday_1800.wma" /><ref href="mms://wm.bbc.co.uk/wms2/bbc7coyopa/bbc7_-_tuesday_1800.wma" /> <MoreInfo href="http://www.bbc.co.uk/" /> <Abstract>BBC </Abstract> </Entry></ASX><br />
There is still a lot more parsing to do, but this is a good way to get the data.
Subscribe to:
Posts (Atom)