|XMLTV::Grab_XML->date_init()||Called at the start of the program to set up Date::Manip. You might want to override this with a method that sets the timezone.|
Returns a hash mapping YYYYMMDD dates to a URL where listings for that
date can be downloaded. This method is abstract, you must override
Arguments: the command line options for --config-file and --quiet.
|XMLTV::Grab_XML->xml_from_data(data)||Given page data for a particular day, turn it into XML. The default implementation just returns the data unchanged, but you might override it if you need to decompress the data or patch it up.|
|XMLTV::Grab_XML->configure()||Configure the grabber if needed. Arguments are --config-file option (or undef) and --quiet flag (or undef).|
|XMLTV::Grab_XML->nextday(day)||Bump a YYYYMMDD date by one. You probably shouldnt override this.|
|XMLTV::Grab_XML->country()||Return the name of the country youre grabbing for, used in usage messages. Abstract.|
|XMLTV::Grab_XML->usage_msg()||Return a command-line usage message. This calls country(), so you probably need to override only that method.|
Given a URL, fetch the content at that URL. The default
implementation calls XMLTV::Get_nice::get_nice() but you might want to
override it if you need to do wacky things with http requests, like
Note that while this method fetches a page, xml_from_data() does any further processing of the result to turn it into XML.
The main program. Parse command line options, fetch and write data.
Most of the options are fairly self-explanatory but this routine also calls the XMLTV::Memoize module to look for a <B>--cacheB> argument. The functions memoized are those given by the cachables() method.
|XMLTV::Grab_XML->cachables()||Returns a list of names of functions which could reasonably be memoized between runs. This will normally be whatever function fetches the web pages - you memoize that to save on repeated downloads. A subclass might want to add things to this list if it has its own way of fetching web pages.|
Checks each stop time and removes it if its before the start time.
Argument: the XML to correct Returns: the corrected XML
Ed Avis, email@example.com
|perl v5.20.3||GRAB::GRAB_XML (3)||2016-04-03|