--- Omar Egan <oegan72@xxxxxxxxx> wrote:
> How does one build a grabber? Where do you usually get the
> information for country listings? I have a bit of pull with the local
> cable provider here maybe I can get the listing information from them
> and "contribute" it to the project in hopes of getting an El Salvador
> grabber built... :-)
If you can get the cooperation of the cable provider (assuming *THEY*
have the data, they may not) they can make the data avaialble via FTP
or SOAP and writing the "grabber" is really just a converter to XMLTV's
format.
If you have to write a true grabber, that's much harder. Best way to
learn is to look at the code for the existing ones.
For web-scraping, I like to use Web::Mechanize and HTML::TableExtract.
That's what I used for tv_grab_na_icons (not a listing grabber, it just
gets icons) and other projects (like reporting available cell-phone
minutes)
There are calls in the XMLTV module that help enforce valid XMLTV
output. Best is to pick a grabber (or two) and figure out how they
work. Also read all the project docs of course.
Robert
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
|