Develop my own Grabber (1 Viewer)

DKreeK

Portal Pro
October 22, 2004
351
0
44
Home Country
France France
Hello James,

I have a problem with WebEPG. I have one of the last SVN : 9/06/2007. And I have somme problem.

In the grabber I have :
<Site url="http://www.canalsat.fr/index.php?tpl=217&amp;DAY=[DD]-[MM]-[YYYY]&amp;cha=[ID]&amp;tra=[PAGE_OFFSET]&amp;multi=2#jo" post="" external="false" encoding="" />
<Search startPage="1" endPage="5" />

When I launch WebEPG I retrieve only one part of the day program. So I watch log file and i can see this (I removed the useless lines) :

2007-06-10 12:40:02.697152 [Info.][1]: WebEPG: Starting
2007-06-10 12:40:02.697152 [Info.][1]: Assembly versions:
2007-06-10 12:40:02.697152 [Info.][1]: WebEPG 2.4.6.0
2007-06-10 12:40:02.697152 [Info.][1]: Utils 2.1.2.0
2007-06-10 12:40:02.712777 [Info.][1]: Loading ChannelMap: WebEPG.xml
2007-06-10 12:40:02.712777 [Info.][1]: WebEPG: Getting Channel 1 of 1
2007-06-10 12:40:02.728402 [Info.][1]: WebEPG: Opening FR\www_canalsat_fr.xml
2007-06-10 12:40:02.962777 [Info.][1]: WebEPG: TimeZone, Local: Paris, Madrid
2007-06-10 12:40:02.962777 [Info.][1]: WebEPG: TimeZone, Site : Romance Standard Time
2007-06-10 12:40:02.994027 [Info.][1]: WebEPG: ChannelId: europe2tv.fr
2007-06-10 12:40:03.025277 [Info.][1]: WebEPG: Reading http://www.canalsat.fr/index.php?tpl=217&DAY=10-06-2007&cha=246&tra=1&multi=2 POST:
2007-06-10 12:40:04.165902 [Info.][1]: WebEPG: Listing Count 6
2007-06-10 12:40:04.212777 [Info.][1]: WebEPG: Reading http://www.canalsat.fr/index.php?tpl=217&DAY=11-06-2007&cha=246&tra=1&multi=2 POST:
2007-06-10 12:40:05.275277 [Info.][1]: WebEPG: Listing Count 6
2007-06-10 12:40:06.900277 [Info.][1]: WebEPG: Reading http://www.canalsat.fr/index.php?tpl=217&DAY=12-06-2007&cha=246&tra=1&multi=2 POST:
2007-06-10 12:40:07.931527 [Info.][1]: WebEPG: Listing Count 6
2007-06-10 12:40:09.087777 [Info.][1]: WebEPG: Reading http://www.canalsat.fr/index.php?tpl=217&DAY=13-06-2007&cha=246&tra=1&multi=2 POST:
2007-06-10 12:40:10.134652 [Info.][1]: WebEPG: Listing Count 6
2007-06-10 12:40:11.134652 [Info.][1]: WebEPG: Reading http://www.canalsat.fr/index.php?tpl=217&DAY=14-06-2007&cha=246&tra=1&multi=2 POST:
2007-06-10 12:40:12.369027 [Info.][1]: WebEPG: Listing Count 6
2007-06-10 12:40:16.494027 [Info.][1]: WebEPG: Finished

We can see that the [PAGE_OFFSET] is not increase from 1 to 5. Could you help me ?
 

cedric

Portal Pro
October 28, 2006
127
4
43
Lausanne
Home Country
Switzerland Switzerland
Hi James,

I would like to try to develop my own grabber too. But the wiki is not clear for me. Maybe a example with a html page and the xml grabber file in relation with it should help me (and a lot of people who want to try to developp a grabber).

Thanks

Cedric
 

pierreye

Portal Member
November 26, 2006
18
0
Is the Page_Offset done? I'm using 0.2.3RC1 but still having the problem where it wouldn't grab the second page. Below is the modification I done to get more program from Malaysia Astro. As you can see, the "batch1" keyword is use to page no string into the URL. When I do a search on the log file for "batch1=2", it didn't return anything means that the program didn't try to download second page.

If anyone can point me where to download the latest WebEPG.dll to replace to fix this problem?

<?xml version="1.0" encoding="utf-8"?>
<Grabber>
<Info availableDays="7" />
<Channels>
<Channel id="RTM1" siteId="M038" />
<Channel id="RTM2" siteId="M039" />
<Channel id="TV3" siteId="M046" />
<Channel id="NTV7" siteId="M036" />
<Channel id="8TV" siteId="M057" />
</Channels>
<Listing type="Html">
<Site url="http://www.astro.com.my/v5/programming/programming_guide/channel_listings.asp?channel_id1=[ID]&amp;channel_id2=&amp;channel_id3=&amp;sdate=[MM]/[DD]/[YYYY]&amp;batch1=[PAGE_OFFSET]&amp;batch2=1&amp;batch3=1" post="" external="false" encoding="" />
<Search startPage="1" endPage="2" />
<Html>
<Template name="default" start="Remind me">
<SectionTemplate tags="TD">
<TemplateText>
&lt;tr&gt;
&lt;td&gt;&lt;div&gt;&lt;#START&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;&lt;div&gt;&lt;a href="javascript:dir_desp('/v5/programming/channels/channel_desc.asp?prog_id=3625513')"&gt;&lt;#TITLE&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;&lt;div&gt;&lt;input&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
</TemplateText>
</SectionTemplate>
</Template>
<Template name="Details" start="Time:">
<SectionTemplate tags="T">
<TemplateText>
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;p&gt;&lt;b&gt;&lt;font&gt;Synopsis:&lt;/font&gt;&lt;/b&gt;&lt;br&gt;
&lt;#DESCRIPTION&gt;
&lt;p&gt;&lt;b&gt;&lt;font&gt;Also on this week:&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</TemplateText>
</SectionTemplate>
</Template>
<Sublinks>
<Sublink search="programming" template="Details" />
</Sublinks>
</Html>
</Listing>
</Grabber>
 

Users who are viewing this thread

Top Bottom