Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

tv-grabber.r

 [1/8] from: james::mustard::co::nz at: 16-Nov-2001 3:22


Hi Graham (and any other kiwi tv watchers out there!) Noticed a tv script on Garaham's rebsite thought I'd post a quickie one that does tv1,2,3,4 and prime from the same site :) this just formats it into console for easy viewing rather than wading through crappy flash and java popups :) REBOL [] ;get major channel listings for today ontv: trim read http://ontv.nzoom.com/schedules/ channels: ["tv1" "tv2" "tv3" "tv4" "prime" "end of"] ch: 1 parse ontv [ some [ (print join (pick channels ch) " listings for today^/~~~~~~~~~~~~~~~~~~~~~~" ch: ch + 1) thru {<TR height="60">^/<TD height="60" bgcolor="#ffffff">^/^/<TABLE border="0" cellpadding="0" cellspacing="0">^/<TR height="60">} copy tdata to </TABLE>^/</TD>^/</TR> (parse tdata [any [thru "<b>" copy program to "</b>" thru <br> copy scheduled to "</td>" (print join scheduled [": " program])]]) (print " ") ] ] halt James

 [2/8] from: gchiu:compkarori at: 16-Nov-2001 10:05


On Fri, 16 Nov 2001 03:22:02 +1300 "James Marsden" <[james--mustard--co--nz]> wrote:
> Hi Graham (and any other kiwi tv watchers out there!) > Noticed a tv script on Garaham's rebsite thought I'd post > a quickie one that > does tv1,2,3,4 and prime > from the same site :)
Hi James, I just tried it - looks like nothing on TV today :( -- Graham Chiu

 [3/8] from: james:mustard at: 16-Nov-2001 13:29


Umm.. I just ran it again.. it seemed to work fine? got listings for all channels that matched against the website correctly.. did the script give you any errors? (PS this was in REBOL/View 1.2.1 not Core 2.5 - if that makes a difference?) James

 [4/8] from: gchiu:compkarori at: 16-Nov-2001 15:32


On Fri, 16 Nov 2001 13:29:16 +1300 "James Marsden" <[james--mustard--co--nz]> wrote:
> Umm.. I just ran it again.. it seemed to work fine?
Ok. My email client mangled your code allowing it to run, but not parse correctly :) It would be nice if these TV guys actually wrapped xml around their listings to save us all this work ... -- Graham Chiu

 [5/8] from: james:mustard at: 16-Nov-2001 15:15


Heh - I wrote to tv2 about their annoying website which is very flash intensive - they said they were working on a html version - that was 6 months ago.. :) Interestingly enough I found another way to get easy tv2 html listings involving a "hidden" tvone feature: try: http://tvone.nzoom.com/schedule/tvone.html?ch=default_two the format is: ch=[weekday | default]_[channel] only channel [one] and [two] are currently supported I think.. James

 [6/8] from: gchiu:compkarori at: 16-Nov-2001 17:27


On Fri, 16 Nov 2001 15:15:57 +1300 "James Marsden" <[james--mustard--co--nz]> wrote:
> Heh - I wrote to tv2 about their annoying website which > is very flash > intensive - they said they were working on a html version > - that was 6 > months ago.. :)
Perhaps they're wondering how to get flash working for wap browsers first :)
> Interestingly enough I found another way to get easy tv2 > html listings > involving a "hidden" tvone feature: > > try: http://tvone.nzoom.com/schedule/tvone.html?ch=default_two >
That's the one I use for my online rebol script at http://209.207.225.184/tv/index.html ( it should be http://www.compkarori.com ... again once I pay my domain name fees again :( ) -- Graham Chiu

 [7/8] from: james:mustard at: 16-Nov-2001 17:24


Hmm.. would anyone be interested in free hosting for their rebol sites? I could have a word to our server admins about opening up a gig or so for users..? James

 [8/8] from: greggirwin:mindspring at: 16-Nov-2001 11:45


Hi James, << would anyone be interested in free hosting for their rebol sites? I could have a word to our server admins about opening up a gig or so for users..? >> I'm sure some people would, though there was a company (can't remember who on the list was the contact) that was going to set up a similar thing. --Gregg