Can WebEPG grab from sites like these ... (1 Viewer)

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
I was hoping for a solution by now. Oh well, time to hit the source.
 

Frantid

Portal Pro
October 11, 2008
117
12
Home Country
Iceland Iceland
Khurram,

try these 2 files for espn and starsports. I'm assuming it is for Pakistan, so you need to add a PK folder under webepg/grabbers. I had to use 2 files, because there is no way to choose channels from the URL. All the channels are in the page source and you have to choose the correct table in the template section in the grabber. I could not get the subtitles to pull correctly, but this may get you started. 7 days for espn and starsports.

frantid
 

Attachments

  • PK.zip
    30.6 KB

Frantid

Portal Pro
October 11, 2008
117
12
Home Country
Iceland Iceland
I was hoping for a solution by now. Oh well, time to hit the source.

Here's a couple for grabbing from tensports. 1 for just today, the other for the whole month. the month file will only make sense if you grab it on the same day as the listing for the month starts -- so on the 1st it should be okay or on the same day as the month table lists as the first day in it's page. I tried some things to get rid of the old days, but couldn't do it.
 

Attachments

  • ten_tensports_com.xml
    30.6 KB
  • month_ten_tensports_com.xml
    30.7 KB

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
Frantid, thanks for posting the files. The grabber for espnstar has the same problem as posted in the first page of this thread: some of the start times are all wierd. For example, if you parse the schedule for Jan 11, the very first start time will be 01:0001:30. The source html for this is:
Code:
<td width="40" class="time">01:00<div class="interval">01:30</div>
</td>
It is those crazy div tags after the start time that are the source of this problem. But I dont know how to skip over the div tags. Another complication is that these div tags vary in number from 0 onwards. James posted a suggestion using the @<... syntax but it doesnt work either. This web site is very frustating :mad:

I already have the 1 day schedule grabber for Ten Sports, but thanks anyways.
 

Frantid

Portal Pro
October 11, 2008
117
12
Home Country
Iceland Iceland
Frantid, thanks for posting the files. The grabber for espnstar has the same problem as posted in the first page of this thread: some of the start times are all wierd. For example, if you parse the schedule for Jan 11, the very first start time will be 01:0001:30. The source html for this is:
Code:
<td width="40" class="time">01:00<div class="interval">01:30</div>
</td>
It is those crazy div tags after the start time that are the source of this problem. But I dont know how to skip over the div tags. Another complication is that these div tags vary in number from 0 onwards. James posted a suggestion using the @<... syntax but it doesnt work either. This web site is very frustating :mad:

I already have the 1 day schedule grabber for Ten Sports, but thanks anyways.

I noticed that in the designer, but webepg is smart enough to get the start time right. here's a copy of the tvguide.xml my times are all different from your timezone.


<programme start="20090111170000" channel="1-espn@espnstar.com">
<title>Sportscenter India 2009 8</title>
</programme>
<programme start="20090111173000" channel="1-espn@espnstar.com">
<title>Sportscenter Asia 2009</title>
</programme>
<programme start="20090111180000" channel="1-espn@espnstar.com">
<title>Football Up Close 2008/09</title>
</programme>
<programme start="20090111183000" channel="1-espn@espnstar.com">
<title>2009 Argentina - Chile Dakar</title>
</programme>
<programme start="20090111190000" channel="1-espn@espnstar.com">
<title>Sportscenter India 2009 8</title>
</programme>
<programme start="20090111190000" channel="1-espn@espnstar.com">
<title>Sportscenter India 2009 8</title>
</programme>
<programme start="20090111193000" channel="1-espn@espnstar.com">
<title>FIFA World Player Gala 2008</title>
</programme>
<programme start="20090111204500" channel="1-espn@espnstar.com">
<title>BBC Archives 2005-06 Pak Legends 2</title>
</programme>
<programme start="20090111213000" channel="1-espn@espnstar.com">
<title>Winter X Games 12 40</title>
</programme>
<programme start="20090111233000" channel="1-espn@espnstar.com">
<title>2007 West Indies Tour Of England -Odis - ODI 1 H/LMatch: England vs. West Indies</title>
</programme>
<programme start="20090112010000" channel="1-espn@espnstar.com">
<title>Sportscenter India 2009 8</title>
</programme>
<programme start="20090112013000" channel="1-espn@espnstar.com">
<title>Sportscenter Asia 2009</title>
</programme>
<programme start="20090112020000" channel="1-espn@espnstar.com">
<title>Winter X Games Eleven Classix: Skiing</title>
</programme>
<programme start="20090112030000" channel="1-espn@espnstar.com">
<title>BBC Archives 2005-06 Pak Legends 3</title>
</programme>
<programme start="20090112040000" channel="1-espn@espnstar.com">
<title>Fina Aquatics World</title>
</programme>
<programme start="20090112043000" channel="1-espn@espnstar.com">
<title>2009 Argentina - Chile Dakar</title>
</programme>
<programme start="20090112050000" channel="1-espn@espnstar.com">
<title>BBC Archives 2005-06 Pak Legends 1</title>
</programme>
<programme start="20090112060000" channel="1-espn@espnstar.com">
<title>KIA X Games Asian 2008</title>
</programme>
<programme start="20090112070000" channel="1-espn@espnstar.com">
<title>Barclays Premier League 2008/9Match: Arsenal vs. Bolton Wanderers</title>
</programme>
<programme start="20090112090000" channel="1-espn@espnstar.com">
<title>ACC Sunday Night HoopsMatch: North Carolina vs. Wake Forest</title>
</programme>
<programme start="20090112110000" channel="1-espn@espnstar.com">
<title>2009 Argentina - Chile Dakar</title>
</programme>
<programme start="20090112113000" channel="1-espn@espnstar.com">
<title>Football Up Close 2008/09</title>
</programme>
 

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
Oh, I never bothered checking it with WebEPG itself. Thanks :)

Can you please answer another question? This website contains schedule for 7 day starting from today and I would like to grab the schedule for all 7 days. The url for today is waw.espnstar.com/tv-listings/region1/day1, for tomorrow is waw.espnstar.com/tv-listings/region1/day2, 1 day after that is waw.espnstar.com/tv-listings/region1/day3 and so on till the 7th day url is waw.espnstar.com/tv-listings/region1/day7.

I think I have to use the <Search ....> tag along with <DayNames> tag but I cant quite figure out the syntax. Will the following settings work:
url: waw.espnstar.com/tv-listings/region1/day[DAY_NAME]
<Search>
<DayNames>
<Day>1</Day>
<Day>2</Day>
<Day>3</Day>
<Day>4</Day>
<Day>5</Day>
<Day>6</Day>
<Day>7</Day>
...
 

Frantid

Portal Pro
October 11, 2008
117
12
Home Country
Iceland Iceland
This is the way I usually do it:

<Site url="http://www.espnstar.com/tv-listings/region1/day[DAY_OFFSET]/" external="false" encoding="" />
<Search startOffset="1" />

It works when I try it. I'm not sure how the daynames work, never used it before. I think it would work as you have it though.
 

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
Code:
url: waw.espnstar.com/tv-listings/region1/day[DAY_NAME]
<Search>
<DayNames>
<Day>1</Day>
<Day>2</Day>
<Day>3</Day>
<Day>4</Day>
<Day>5</Day>
<Day>6</Day>
<Day>7</Day>
...
Yes it finally works. Thanks for all your help.

If you are not too tired of me already (I hope not :)), I have another question. Please look at the following:
url for today, Jan 11​
habp://tv.burrp.com/channel/star-movies/59/1231698600000


url for tomorrow, Jan 12​
habp://tv.burrp.com/channel/star-movies/59/1231785000000



59 is the channel id but I dont get the big number at the end of the url. Its not epoch date or time. Any ideas?
 

Frantid

Portal Pro
October 11, 2008
117
12
Home Country
Iceland Iceland
Code:
url: waw.espnstar.com/tv-listings/region1/day[DAY_NAME]
<Search>
<DayNames>
<Day>1</Day>
<Day>2</Day>
<Day>3</Day>
<Day>4</Day>
<Day>5</Day>
<Day>6</Day>
<Day>7</Day>
...
Yes it finally works. Thanks for all your help.

If you are not too tired of me already (I hope not :)), I have another question. Please look at the following:
url for today, Jan 11​
habp://tv.burrp.com/channel/star-movies/59/1231698600000


url for tomorrow, Jan 12​
habp://tv.burrp.com/channel/star-movies/59/1231785000000



59 is the channel id but I dont get the big number at the end of the url. Its not epoch date or time. Any ideas?

Not tired, just trying to help where I can.

It looks like epoch time in milliseconds. Don't know what timezone they are using though. Maybe you could use "[EPOCH_TIME]000" in the url - or maybe just [DAY_OFFSET]? [DAY_OFFSET] is capable of making some conversions on it's own I think, it starts at "0".
 

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
Thanks, it does look like "[EPOCH_TIME]000". I will test it and post back here.

Two more problems.
1) This is the grabber:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Grabber>
  <Info availableDays="7" timezone="Pakistan Standard Time" version="2.0" />
  <Channels>
    <Channel id="humtv@hum.tv" siteId="" />
  </Channels>
  <Listing type="Html">
    <Site url="http://www.hum.tv/programming/schedule.asp" post="week_day=[WEEKDAY]" external="false" encoding="" />
    <Search weekday="dddd" />
	<Html>
      <Template name="default" start="&lt;th width=&quot;20%&quot; class=&quot;th&quot;&gt;Category&lt;/th&gt;" end="&lt;/table&gt;">
        <SectionTemplate tags="TA">
          <TemplateText>
&lt;td	align="left" class="td"&gt;&lt;#START&gt;&lt;/td&gt;			
				&lt;td	align="left" class="td"&gt;&lt;a href="program_selection.asp?prog_id=1212" class=link&gt;&lt;#TITLE&gt;&lt;/a&gt;&lt;/td&gt;	
				&lt;td	align="left" class="td"&gt;&lt;#GENRE&gt;&lt;/td&gt;
          </TemplateText>
        </SectionTemplate>
      </Template>
    </Html>
  </Listing>
</Grabber>
It works in EPG_Designer but WebEPG always gives the error that no listings could be found. Is there a way to increase debugging level for WebEPG?

2) The grabber is
Code:
<?xml version="1.0" encoding="utf-8"?>
<Grabber>
  <Info availableDays="1" timezone="Pakistan Standard Time" version="2.0" />
  <Channels>
    <Channel id="aryoneworld@aryoneworld.tv" siteId="" />
  </Channels>
  <Listing type="Html">
    <Site url="http://www.dawn.com/[YYYY]/[MM]/[DD]/tv.htm" post="" external="false" encoding="" />
    <Html>
      <Template name="default" start="&lt;FONT FACE=&quot;Arial&quot; Color=&quot;Blue&quot;&gt;&lt;b&gt;Ary OneWorld" end="&lt;FONT FACE=&quot;Arial&quot; Color=&quot;Blue&quot;&gt;&lt;b&gt;ARY DIGITAL">
        <SectionTemplate tags="T">
          <TemplateText>
&lt;TR VALIGN="bottom"&gt;
&lt;TD ALIGN="right"&gt;&lt;FONT FACE="Arial"&gt;&lt;#START&gt;&lt;/FONT&gt;&lt;/TD&gt; 
&lt;TD ALIGN="left"&gt;&lt;FONT FACE="Arial"&gt;&lt;#TITLE&gt;&lt;/FONT&gt;&lt;/TD&gt; 
&lt;/TR&gt;
          </TemplateText>
        </SectionTemplate>
      </Template>
    </Html>
  </Listing>
</Grabber>
Again WebEPG_Designer works fine but WebEPG seems to ignore the "end" attribute value in the "Template" tag and keeps on parsing till the end of the page.

Thanks.
 

Users who are viewing this thread

Top Bottom