illwill Posted March 30, 2009 Report Share Posted March 30, 2009 http://www.techpowerup.com/downloads/ it has a different folder/mirror name and version for the download Link to comment Share on other sites More sharing options...
CybTekSol Posted March 30, 2009 Report Share Posted March 30, 2009 Try this: <?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>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator>{version}</VariableChangeIndicator> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer>http://www.techpowerup.com/downloads/1363/mirrors.php</HttpReferer> <Variables> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(?:TechPowerUp\sGPU-Z.*?)(Beta.+?|Build.+?|\d.*?)(?:<|&)</Regex> <Url>http://www.techpowerup.com/downloads/1363/mirrors.php</Url> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>truncated_url</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(?:Please\sclick\sone\sof\sthe\slinks\sbelow.*?href=")(/downloads/.*?\.exe)(?:")</Regex> <Url>http://www.techpowerup.com/downloads/1363/mirrors.php</Url> <Name>truncated_url</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <Category>System Info</Category> <SourceType>FixedUrl</SourceType> <PreviousLocation /> <DeletePreviousFile>false</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated xsi:nil="true" /> <TargetPath>{target}\{category}\{appname:replace: :_}_v{version:replace: :_}.{url:ext}</TargetPath> <FixedDownloadUrl>http://www.techpowerup.com/{truncated_url}</FixedDownloadUrl> <Name>TechPowerUp GPU-Z</Name> </ApplicationJob> </Jobs> It 'scrapes' the first mirror only... if this mirror fails simply adjust the regex for the {truncated_url} variable (or try selecting RTL to 'scrape' the last mirror)... hope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now