Sphinx Posted March 13, 2010 Report Share Posted March 13, 2010 Does anyone have a working config for downloading SmartGIT? i've tried and tried but no luck in getting it working.. the page is here http://www.syntevo.com/smartgit/download.html i downloaded from softpedia before, but now with the Beta being out, softpedia is being very weird and saying that there is a new version but then downloads the old version instead. hope someone can figure this one out. Link to comment Share on other sites More sharing options...
CybTekSol Posted March 14, 2010 Report Share Posted March 14, 2010 I created this from one of my 'generic templates' as a starting point for your pleasure Sphinx. It works for the current version but may fail with subsequent versions as the captured 'acceptance key' that I plugged into the 'download_url' (sf3dfr47cr) may change at that point. No guarantees... but for testing, tweaking or disposal. lol Interesting at least... <?xml version='1.0' encoding='utf-8'?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <WebsiteUrl /> <UserNotes /> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>AlwaysDownload</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator /> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer>http://www.syntevo.com/{http_ref}</HttpReferer> <Variables> <item> <key> <string>anchor1</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>\<div\sclass="download"\></TextualContent> <Name>anchor1</Name> </UrlVariable> </value> </item> <item> <key> <string>ver_scrape</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(?<={anchor1}.*?>)(Beta.+?|Build.+?|\d+[\.\d+]+?.*?Beta.*?\d+[\.\d+]+?|\d+[\.\d+]+?.*?Build.*?\d+[\.\d+]+?|\d+[\.\d+]+?.*?Beta|\d+[\.\d+]+?)(?=<|&)</Regex> <Url>http://www.syntevo.com/smartgit/download.html</Url> <Name>ver_scrape</Name> </UrlVariable> </value> </item> <item> <key> <string>ver_rep1</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{ver_scrape:replace: Beta :.}</TextualContent> <Name>ver_rep1</Name> </UrlVariable> </value> </item> <item> <key> <string>ver_rep2</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{ver_rep1:replace: Build :.}</TextualContent> <Name>ver_rep2</Name> </UrlVariable> </value> </item> <item> <key> <string>ver_rep3</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{ver_rep2:replace: Free Trial:}</TextualContent> <Name>ver_rep3</Name> </UrlVariable> </value> </item> <item> <key> <string>ver_rep4</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{ver_rep3:replace: Trial:}</TextualContent> <Name>ver_rep4</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{ver_rep4:replace: :_}</TextualContent> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>anchor2</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>\<div\sclass="downloadButtonContent"\></TextualContent> <Name>anchor2</Name> </UrlVariable> </value> </item> <item> <key> <string>http_ref</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(?:{anchor2}.*?)(?:"\.\./)(([\w\s_;\.?=%&=\-@/$,]*\.)(?:exe|7z|zip))(?:")</Regex> <Url>http://www.syntevo.com/smartgit/download.html</Url> <Name>http_ref</Name> </UrlVariable> </value> </item> <item> <key> <string>truncated_url</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(?:{anchor2}.*?)(?:"\.\./)(?:[\w\s_;\.?=%&=\-@/$,]*\?file=smartgit\/(([\w\s_;\.?=%&=\-@/$,]*\.)(?:exe|7z|zip)))(?:")</Regex> <Url>http://www.syntevo.com/smartgit/download.html</Url> <Name>truncated_url</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <Category>Test</Category> <SourceType>FixedUrl</SourceType> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <TargetPath>{target}\{category}\{appname:replace: :_}_setup_JRE_v{version}.{url:ext}</TargetPath> <FixedDownloadUrl>http://www.syntevo.com/download/smartgit/{truncated_url}?sf3dfr47cr</FixedDownloadUrl> <Name>SmartGit</Name> </ApplicationJob> </Jobs> At the very least it will give you something to play with. Link to comment Share on other sites More sharing options...
Sphinx Posted March 15, 2010 Author Report Share Posted March 15, 2010 thanks.. but that didn't work for me.. i think their 'acceptance key' changes more often than 'per version', probably per download request, also the page where i click the download link, after the EULA, also changes, i've had a 2 in there and also a 3 in the '?wicket:interface=:2::::' part of the url.. i get this when trying your template SmartGit The downloaded file is not a binary file type (text/html;charset=UTF-8). Possibly there is an error page. Status code: 200 (OK) (http://www.syntevo.com/download/smartgit/smartgit-win32-setup-jre-1_0_4.zip?sf3dfr47cr) guess i'll have to get that one manually when they update.. 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