|
Net::Download::XMLScripted::XMLScripted - Perl XML scripted download program |
Net::Download::XMLScripted::XMLScripted - Perl XML scripted download program
use Net::Download::XMLScripted::XMLScripted;
To Run from Command Line:
(1) perl XMLScripted.pm -inXMLFileName xmlFileName [-verbose]
(2) perl XMLScripted.pm -inXMLFileName xmlFileName -beginDate YYYY-MM-DD [-endDate YYYY-MM-DD]
(3) perl XMLScripted.pm -generateSampleXMLFile sampleXMLFileName
(4) perl XMLScripted.pm -showTranslationRules
(5) perl XMLScripted.pm -version
This is a daily download program. The input is an XML file that has information about URLs that need to be downloaded. It uses specific translation rules to generate URL names that contain dates. It creates directories specified in the input XML file and downloads the URLs. This module is ideal for cron jobs.
None by default.
perl(1) LWP::UserAgent HTTP::Request HTTP::Response URI::Heuristic XML::Parser
Singh T. Junior, <tsingh@gmail.com
Copyright (C) 2006 by Singh T. Junior
All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
getTranslationRules()getTranslationRules() return a string that contains translation grammar.
createTranslationHash()createTranslationHash() generates the hash that contains the translation rules.
It's input argument is an Epoch Time variable.
Example: $cio->createTranslationHash(time);
download()dowload() performs the download operations. This includes creation of required directories.
getFullDirectoryName()writeStatusReport()getOperatingSystem()getOperatingSystem() function returns the type of Operating System.
printUsage()getVersion()generateSampleXMLFile()runEngine()run()|
Net::Download::XMLScripted::XMLScripted - Perl XML scripted download program |