Topic: CybTekSol's LATEST Universal Softpedia.com Template (TEST)
My LATEST Universal Softpedia.com Template (TEST):
****PLEASE TEST it and give me some feedback on this one if you refine it or have
significant problems citing specific examples.
****NOTE: This template uses the application's INFO page URL.
1) There are two user defined global variables used, download_url={download_url}
(used as an alternative to {url}) and root_folder=Insert YOUR download destination
ROOT folder here (for example C:\Latest-Apps).
2) The latest version of Ketarin (1.0.3) released February 24, 2009 or later is
required to overcome their site changes for 'user-agent'.
3) The template follows:
<?xml version="1.0" encoding="utf-16"?>
<Jobs>
<ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DownloadBeta>Avoid</DownloadBeta>
<DownloadDate xsi:nil="true" />
<VariableChangeIndicator />
<CanBeShared>true</CanBeShared>
<ShareApplication>false</ShareApplication>
<HttpReferer>{redir1}</HttpReferer>
<Variables>
<item>
<key>
<string>version</string>
</key>
<value>
<UrlVariable>
<VariableType>RegularExpression</VariableType>
<Regex><title>Download.*?(\d.*?|\d.*?[ ]Build[ ]\d.*?|\d.*?[ ]Beta[ ]\d.*?)(?:\s\/\s|\s-\s)</Regex>
<Url><placeholder name="Application Info Page URL from Softpedia" /></Url>
<Name>version</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>redir1</string>
</key>
<value>
<UrlVariable>
<VariableType>RegularExpression</VariableType>
<Regex>(?<=download_bkg.gif.*?<a href=").*?(?=")</Regex>
<Url><placeholder name="Application Info Page URL from Softpedia" /></Url>
<Name>redir1</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>download_url</string>
</key>
<value>
<UrlVariable>
<VariableType>RegularExpression</VariableType>
<Regex>(?<=DOWNLOAD LOCATIONS.*?<table width=".*?<a href=").*?(?=")</Regex>
<Url>{redir1}</Url>
<Name>download_url</Name>
</UrlVariable>
</value>
</item>
</Variables>
<ExecuteCommand />
<Category>[INSERT CATEGORY HERE]</Category>
<SourceType>FixedUrl</SourceType>
<DeletePreviousFile>false</DeletePreviousFile>
<Enabled>true</Enabled>
<FileHippoId />
<LastUpdated xsi:nil="true" />
<TargetPath>{root_folder}\{category}\{appname:replace: :_}_v{version:replace: :_}.{url:ext}</TargetPath>
<FixedDownloadUrl>{download_url}</FixedDownloadUrl>
<Name><placeholder name="Application Name" /></Name>
</ApplicationJob>
</Jobs>To use it:
1) Define the user defined global variables under 'Settings' in Ketarin to YOUR
preferences
2) Edit the template externally to reflect these modifications (if you choose not to use
mine) and change the <TargetPath> line to YOUR preferences
3) Then:
a) Import it (Obviously)
b) Enter the information needed as requested as a result of the 'placeholder'
prompts... it will ask for the application's DOWNLOAD page URL (NOT the information
page URL) and the application's name
c) Modify the Category to your preferences
d) Change the 'Advanced Settings' to your preferences
e) VERIFY...VERIFY...VERIFY that ALL regex matches WORK and
MAKE ADJUSTMENTS to them as necessary!
I have had a 80-90% success rate with this template; in instances where it failed, I simply tweak the regular expression. ![]()
CybTekSol