Hi All,
I am new to this forum. I have been trying to get EPG data for some channels that are streamed live from the UK (I am in Canada). The data is only found on Sky Guide. So I have been trying to write a grabber for it but I am running into some problems. Again I am kind of new to this and would greatly appreciate any guidance.
Here is a link to the actual Sky Guide: Sky Guide TV Listings - Sky
Now you can't see the any epg data by looking at the page source this page. However, I happened to find it using another method.
Using URL Snooper, I found the url for individual channel data. For example here is the url for Discovery HD (520) for January 22, 2011 (My channels of interest is not Discovery HD, I am just using it as an example)
12am-6am http://tv.sky.com/programme/channel/4003/2012-01-22/0
6am-12pm http://tv.sky.com/programme/channel/4003/2012-01-22/1
12pm-6pm http://tv.sky.com/programme/channel/4003/2012-01-22/2
6pm-12am http://tv.sky.com/programme/channel/4003/2012-01-22/3
Here 4003 is the site id for Discovery HD and the 0-3 at the end are pages over which the data is spread out
The data for 12am-6am looks like this:
{"listings":{"4003":[{"d":"Kimberleys: Bear Grylls demonstrates how to survive the harsh Australian outback by showing where to find food, and avoid sunstroke and saltwater crocodiles.","m":[501,3600,3,0,"--"],"rr":"S","s":1327190400,"sid":41500,"t":"Bear Grylls: Born Survivor","url":"http://sky.tv/ps7q4s"},{"d":"President's Challenge: In this extra special episode, Adam and Jamie tackle a viewer request from the highest ranking viewer of all, the US President, Barack Obama.","m":[502,3600,3,1,"--"],"rr":"S","s":1327194000,"sid":58968,"t":"Mythbusters","url":"http://sky.tv/btj65x"},{"d":"Walking on Water: In this martial arts special, Jamie and Adam find out if Ninjas can run on water, as they join a Ninjitsu master and try their luck at aquatic agility.","m":[504,3600,3,1,"--"],"rr":"S","s":1327197600,"sid":58968,"t":"Mythbusters","url":"http://sky.tv/btjzxn"},{"d":"Adam and Jamie face off with a myth of misdirection and Kari, Grant and Tory go ballistic with two filmic firearms fables.","m":[507,3000,3,1,"--"],"rr":"S","s":1327201200,"sid":58968,"t":"Mythbusters","url":"http://sky.tv/btj663"},{"d":"Adam and Jamie test if they can walk on water, and Kari, Grant, and Tory test if common things can be bombproof.","m":[510,3000,3,1,"--"],"rr":"S","s":1327204200,"sid":58968,"t":"Mythbusters","url":"http://sky.tv/btjzys"},{"d":"Hindenburg Mystery: Adam and Jamie turn detective to solve one of aviation's biggest puzzles, while Kari and company come face-to-face with nature's natural-born killers.","m":[515,3000,3,0,"--"],"rr":"S","s":1327207200,"sid":58968,"t":"Mythbusters","url":"http://sky.tv/btj677"},{"d":"A military jet breaks apart and crashes, a man survives being run over by a tractor trailer, and the safety capsule flies open during a dragboat crash.","m":[518,1800,3,0,"--"],"rr":"S","s":1327210200,"sid":46290,"t":"Destroyed in Seconds","url":"http://sky.tv/btjzzx"},{"d":"Part 1: Explore Mexico's thriving cities and stunning beaches in this look at ancient and modern Mexican culture, from religious festivals to Independence Day celebrations.","m":[523,3600,3,1,"--"],"rr":"S","s":1327212000,"sid":37223,"t":"Discovery Atlas: Mexico Revealed","url":"http://sky.tv/btjz23"}]}}
It looks the format for the epg data is as follows
{"d":"Kimberleys: Bear Grylls demonstrates how to survive the harsh Australian outback by showing where to find food, and avoid sunstroke and saltwater crocodiles.","m":[501,3600,3,0,"--"],"rr":"S","s":1327190400,"sid":41500,"t":"Bear Grylls: Born Survivor","url":"http://sky.tv/ps7q4s"},
{"d":"#DESCRIPTION","m":[501,3600,3,0,"--"],"rr":"S","s":#START,"sid":41500,"t":"#TITLE","url":"http://sky.tv/ps7q4s"},
Questions:
1. The data for an each day is spread out over 4 webpages (each providing data for 6 hours). How can I indicate this in the grabber file to ensure that it checks all 4 of them for each day.
2. I believe the start time is provided in a unix timestamp. For example "1327190400" from the above indicates a start time of Sunday 22nd January 2012 12:00:00 AM. How do I indicate this in grabber file to so that it converts it to the regular XMLTV start time when it grabs.
Below is the grabber file I put together using some of the examples and the wiki. I have attached it as well:
<?xml version="1.0" encoding="utf-8"?>
<Grabber>
<Info availableDays="0" timezone="GMT Standard Time" version="2.1.0" />
<Channels>
<Channel id="Discovery HD" siteId="" />
</Channels>
<Listing type="Data">
<Site url="http://tv.sky.com/programme/channel/4003/[YYYY]-[MM]-[DD]/[LIST_OFFSET]" post="" external="false" encoding="" />
<Data rowDelimitor="
" dataDelimitor="~">{"d":"#DESCRIPTION.","m":[499,1800,1,0,"--"],"rr":"R","s":#START,"t":"#TITLE","url":"http://sky.tv/mvwwc7"}
</Data>
</Listing>
</Grabber>
Again I am totally new so my grabber file might be way off. I would really appreciate anyone's help.

I am new to this forum. I have been trying to get EPG data for some channels that are streamed live from the UK (I am in Canada). The data is only found on Sky Guide. So I have been trying to write a grabber for it but I am running into some problems. Again I am kind of new to this and would greatly appreciate any guidance.
Here is a link to the actual Sky Guide: Sky Guide TV Listings - Sky
Now you can't see the any epg data by looking at the page source this page. However, I happened to find it using another method.
Using URL Snooper, I found the url for individual channel data. For example here is the url for Discovery HD (520) for January 22, 2011 (My channels of interest is not Discovery HD, I am just using it as an example)
12am-6am http://tv.sky.com/programme/channel/4003/2012-01-22/0
6am-12pm http://tv.sky.com/programme/channel/4003/2012-01-22/1
12pm-6pm http://tv.sky.com/programme/channel/4003/2012-01-22/2
6pm-12am http://tv.sky.com/programme/channel/4003/2012-01-22/3
Here 4003 is the site id for Discovery HD and the 0-3 at the end are pages over which the data is spread out
The data for 12am-6am looks like this:
{"listings":{"4003":[{"d":"Kimberleys: Bear Grylls demonstrates how to survive the harsh Australian outback by showing where to find food, and avoid sunstroke and saltwater crocodiles.","m":[501,3600,3,0,"--"],"rr":"S","s":1327190400,"sid":41500,"t":"Bear Grylls: Born Survivor","url":"http://sky.tv/ps7q4s"},{"d":"President's Challenge: In this extra special episode, Adam and Jamie tackle a viewer request from the highest ranking viewer of all, the US President, Barack Obama.","m":[502,3600,3,1,"--"],"rr":"S","s":1327194000,"sid":58968,"t":"Mythbusters","url":"http://sky.tv/btj65x"},{"d":"Walking on Water: In this martial arts special, Jamie and Adam find out if Ninjas can run on water, as they join a Ninjitsu master and try their luck at aquatic agility.","m":[504,3600,3,1,"--"],"rr":"S","s":1327197600,"sid":58968,"t":"Mythbusters","url":"http://sky.tv/btjzxn"},{"d":"Adam and Jamie face off with a myth of misdirection and Kari, Grant and Tory go ballistic with two filmic firearms fables.","m":[507,3000,3,1,"--"],"rr":"S","s":1327201200,"sid":58968,"t":"Mythbusters","url":"http://sky.tv/btj663"},{"d":"Adam and Jamie test if they can walk on water, and Kari, Grant, and Tory test if common things can be bombproof.","m":[510,3000,3,1,"--"],"rr":"S","s":1327204200,"sid":58968,"t":"Mythbusters","url":"http://sky.tv/btjzys"},{"d":"Hindenburg Mystery: Adam and Jamie turn detective to solve one of aviation's biggest puzzles, while Kari and company come face-to-face with nature's natural-born killers.","m":[515,3000,3,0,"--"],"rr":"S","s":1327207200,"sid":58968,"t":"Mythbusters","url":"http://sky.tv/btj677"},{"d":"A military jet breaks apart and crashes, a man survives being run over by a tractor trailer, and the safety capsule flies open during a dragboat crash.","m":[518,1800,3,0,"--"],"rr":"S","s":1327210200,"sid":46290,"t":"Destroyed in Seconds","url":"http://sky.tv/btjzzx"},{"d":"Part 1: Explore Mexico's thriving cities and stunning beaches in this look at ancient and modern Mexican culture, from religious festivals to Independence Day celebrations.","m":[523,3600,3,1,"--"],"rr":"S","s":1327212000,"sid":37223,"t":"Discovery Atlas: Mexico Revealed","url":"http://sky.tv/btjz23"}]}}
It looks the format for the epg data is as follows
{"d":"Kimberleys: Bear Grylls demonstrates how to survive the harsh Australian outback by showing where to find food, and avoid sunstroke and saltwater crocodiles.","m":[501,3600,3,0,"--"],"rr":"S","s":1327190400,"sid":41500,"t":"Bear Grylls: Born Survivor","url":"http://sky.tv/ps7q4s"},
{"d":"#DESCRIPTION","m":[501,3600,3,0,"--"],"rr":"S","s":#START,"sid":41500,"t":"#TITLE","url":"http://sky.tv/ps7q4s"},
Questions:
1. The data for an each day is spread out over 4 webpages (each providing data for 6 hours). How can I indicate this in the grabber file to ensure that it checks all 4 of them for each day.
2. I believe the start time is provided in a unix timestamp. For example "1327190400" from the above indicates a start time of Sunday 22nd January 2012 12:00:00 AM. How do I indicate this in grabber file to so that it converts it to the regular XMLTV start time when it grabs.
Below is the grabber file I put together using some of the examples and the wiki. I have attached it as well:
<?xml version="1.0" encoding="utf-8"?>
<Grabber>
<Info availableDays="0" timezone="GMT Standard Time" version="2.1.0" />
<Channels>
<Channel id="Discovery HD" siteId="" />
</Channels>
<Listing type="Data">
<Site url="http://tv.sky.com/programme/channel/4003/[YYYY]-[MM]-[DD]/[LIST_OFFSET]" post="" external="false" encoding="" />
<Data rowDelimitor="
" dataDelimitor="~">{"d":"#DESCRIPTION.","m":[499,1800,1,0,"--"],"rr":"R","s":#START,"t":"#TITLE","url":"http://sky.tv/mvwwc7"}
</Data>
</Listing>
</Grabber>
Again I am totally new so my grabber file might be way off. I would really appreciate anyone's help.
England