Jump to content
Ketarin forum

Testing a new CNET Download.com Template


CybTekSol
 Share

Recommended Posts

I am testing a new version of my CNET Download.com template that uses THEIR search engine to overcome the ever-changing app page URLs with newer versions of an app hosted on CNET. If anyone is interested in helping with testing and suggestions for tweaking... post back to this thread.

 

Thanks,

CybTekSol

Link to comment
Share on other sites

  • 3 months later...

I use it daily now as it has proven to be reliable so far... I'll try to get it posted in the next few days for you shawn... my work load is almost unbearable at the moment which is why I have not been on the forum more often. I don't see any relief in sight which is depressing me. More hours... less rewards... poor economy... inflation... it's enough to drive me to drink but I can't afford it financially. :( lol

Link to comment
Share on other sites

  • 2 weeks later...

I know the feeling. I put in over 500 hours in May and am on track to do close to the same this month. It's painful. I've been using Ketarin to try to minimize the amount of manual work I have to do - but some sites (like CNET) require extra coding to keep things clean or change things often, and that's a PITA.

 

Contact me by email if you're looking for work.

Link to comment
Share on other sites

  • 4 weeks later...

Try this Shawn... it is based on my CNET template. Modify it for your setup...

 

<?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" Guid="532b2dd1-6688-417b-be8f-60b9dccb6f87">
<DownloadBeta><placeholder name="Download Beta Versions?" value="Default" options="Default|Avoid|AlwaysDownload" /></DownloadBeta>
<DownloadDate xsi:nil="true" />
<CheckForUpdatesOnly><placeholder name="Check for Updates Only?" value="false" options="false|true" /></CheckForUpdatesOnly>
<VariableChangeIndicator><placeholder name="Change Indicator?" value="" options="|version|{f:yyyy}-{f:MM}-{f:dd}" /></VariableChangeIndicator>
<CanBeShared>true</CanBeShared>
<ShareApplication>false</ShareApplication>
<ExclusiveDownload><placeholder name="Exclusive Download?" value="false" options="false|true" /></ExclusiveDownload>
<HttpReferer>{redir1}</HttpReferer>
<Variables>
  <item>
	<key>
	  <string>CNetDownloadName</string>
	</key>
	<value>
	  <UrlVariable>
		<RegexRightToLeft>false</RegexRightToLeft>
		<VariableType>Textual</VariableType>
		<Regex />
		<TextualContent><placeholder name="CNet Download.com App Name from URL? [Example: Avast-Home-Edition]" /></TextualContent>
		<Name>CNetDownloadName</Name>
	  </UrlVariable>
	</value>
  </item>
  <item>
	<key>
	  <string>CNetSearchPage</string>
	</key>
	<value>
	  <UrlVariable>
		<RegexRightToLeft>false</RegexRightToLeft>
		<VariableType>RegularExpression</VariableType>
		<Regex>(?<=\<form method="get"\saction="/)(.+?)(?="\sclass="universalSearch")</Regex>
		<Url>http://download.cnet.com/</Url>
		<Name>CNetSearchPage</Name>
	  </UrlVariable>
	</value>
  </item>
  <item>
	<key>
	  <string>find</string>
	</key>
	<value>
	  <UrlVariable>
		<RegexRightToLeft>false</RegexRightToLeft>
		<VariableType>RegularExpression</VariableType>
		<Regex>(?<="resultInfo".*?href=.+?)({CNetDownloadName}/.+?\.html)(?=")</Regex>
		<Url>http://download.cnet.com/{CNetSearchPage}?query={CNetDownloadName}&tag=srch&searchtype=downloads</Url>
		<Name>find</Name>
	  </UrlVariable>
	</value>
  </item>
  <item>
	<key>
	  <string>version</string>
	</key>
	<value>
	  <UrlVariable>
		<RegexRightToLeft>false</RegexRightToLeft>
		<VariableType>RegularExpression</VariableType>
		<Regex>(?:"softwareVersion"\scontent=")(\d+[\.\d+]+?.*?)(?:")</Regex>
		<Url>http://download.cnet.com/{find}</Url>
		<Name>version</Name>
	  </UrlVariable>
	</value>
  </item>
  <item>
	<key>
	  <string>redir1</string>
	</key>
	<value>
	  <UrlVariable>
		<RegexRightToLeft>false</RegexRightToLeft>
		<VariableType>RegularExpression</VariableType>
		<Regex>(?<=class="downloadNow".*?a\shref=")http://dw.com.com.+?(?=")</Regex>
		<Url>http://download.cnet.com/{find}</Url>
		<Name>redir1</Name>
	  </UrlVariable>
	</value>
  </item>
  <item>
	<key>
	  <string>download_url</string>
	</key>
	<value>
	  <UrlVariable>
		<RegexRightToLeft>false</RegexRightToLeft>
		<VariableType>RegularExpression</VariableType>
		<Regex>(?<=META\sHTTP-EQUIV="Refresh"\sCONTENT="\d;\sURL=)[a-z]+://.+?(?="/>)</Regex>
		<Url>{redir1}</Url>
		<Name>download_url</Name>
	  </UrlVariable>
	</value>
  </item>
</Variables>
<ExecuteCommand><placeholder name="Execute Command AFTER Downloading?" value="" options="copy /y "{file}" "{archive_folder}\{category}"|copy /y "{file}" "{install_cache_folder}"&|copy /y "{file}" "{shared}\{category}"&|copy /y "{file}" "{install_cache_folder}" & copy /y "{file}" "{secunia_suggested}"&|{run_7-zip} x "{file}" -r -aoa -o"{install_cache_folder}{appname:replace: :_}_v{version}"&|{run_ue} "{file}" "{install_cache_folder}{appname:replace: :_}_v{version}"&|{run_7-zip} x "{file}" -r -aoa -o"{nirsoft_utilities_root_folder}{appname:replace: :_}"&|{run_7-zip} x "{file}" -r -aoa -o{sysinternals_suite_root_folder}&|" /></ExecuteCommand>
<ExecutePreCommand><placeholder name="Execute Command BEFORE Downloading?" value="copy /y "{file}" "{archive_folder}\{category}"" options="copy /y "{file}" "{archive_folder}\{category}"|move /y "{target}\{category}\{appname:replace: :_}*.*" "{archive_folder}\{category}"|move /y "{target}\{category}\{appname:replace: :_}*.*" "{archive_folder}\{category}"|del /q "{target}\{category}\{appname:replace: :_}*.*"|del /q "{target}\{category}\{appname:replace: :_}*.*"|" /></ExecutePreCommand>
<Category><placeholder name="Category?" value="New" options="Antivirus|CD-DVD|Data|Distros|Drivers|Education|Engineering|Finance|Games|Internet|Media|Miscellaneous|New|Office|Personal Productivity|Programming|Security|Test|Text|Utilities" /></Category>
<SourceType>FixedUrl</SourceType>
<PreviousLocation />
<DeletePreviousFile><placeholder name="Delete Previous Version?" value="true" options="true|false" /></DeletePreviousFile>
<Enabled>true</Enabled>
<FileHippoId />
<LastUpdated xsi:nil="true" />
<TargetPath><placeholder name="Save to Location?" value="{target}\{category}\" options="{target}\{category}\|{target}\|{startuppath}\{category\|{startuppath}\|" /><placeholder name="Rename Rule Convention?" value="{appname:replace: :_}_v{version:replace: :_}.{url:ext}" options="{appname:replace: :_}_v{version:replace: :_}.{url:ext}|{appname:replace: :_}_install_v{version:replace: :_}.{url:ext}|{appname:replace: :_}_installer_v{version:replace: :_}.{url:ext}|{appname:replace: :_}_setup_v{version:replace: :_}.{url:ext}|{url:basefile}_v{version:replace: :_}.{url:ext}" /></TargetPath>
<FixedDownloadUrl>{download_url}</FixedDownloadUrl>
<Name><placeholder name="Application Name?" value="New CNet App Download" /></Name>
 </ApplicationJob>
</Jobs>

 

Enjoy!!

Edited by CybTekSol
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

Trying to download the latest System Explorer (System-Explorer) from CNet using the template above gives the following error. The template worked prior to the latest version. It looks like it is having problems with the regex parsing for the download_url variable.

 

Here is the error output.

 

 

System Explorer Invalid URI: The URI scheme is not valid. (<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

 

<head>

<meta http-equiv="content-Type" content="text/html; charset=UTF-8">

<meta http-equiv="content-Language" content="en-us">

<meta name="description" content="Thank you for downloading System Explorer">

<meta name="keywords" content="System Explorer,Download,Services,Drivers,Autoruns,Taskmanager,Processes,Tasks,Snapshots,Download" >

<meta name="copyright" content="2008-2010, Mister Group">

<meta name="author" content="Mister Group - admin@mistergroup.org">

<meta name="robots" content="NOINDEX, NOFOLLOW">

<meta name="fb:admins" content="1387466474">

<link rel="stylesheet" type="text/css" href="/styles.css">

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="/stylesie.css">

<![endif]-->

<title>Thank you for downloading System Explorer 2.3.5</title>

</head>

 

<body style="position:relative;"> <!--[if lt IE 7]>

<div style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;'>

<div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='Close this notice'></a></div>

<div style='width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>

<div style='width: 75px; float: left;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'></div>

<div style='width: 275px; float: left; font-family: Arial, sans-serif;'>

<div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>You are using an outdated browser</div>

<div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>For a better experience using this site, please upgrade to a modern web browser.</div>

</div>

<div style='width: 75px; float: left;'><a href='http://www.firefox.com' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox 3.5'></a></div>

<div style='width: 75px; float: left;'><a href='http://www.browserforthebetter.com/download.html' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-ie8.jpg' style='border: none;' alt='Get Internet Explorer 8'></a></div>

<div style='width: 73px; float: left;'><a href='http://www.apple.com/safari/download/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari 4'></a></div>

<div style='float: left;'><a href='http://www.google.com/chrome' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'></a></div>

</div>

</div>

<![endif]-->

 

<div class="top">

<div class="menu">

<ul>

<li><a id="mi_0" href="/index.php">Home</a></li>

<li><a id="mi_1" href="/news.php">News</a></li>

<li><a id="mi_3" href="/download.php">Download</a></li>

<!--<li><a id="mi_3" href="/languages.php">Languages</a></li>-->

<li><a id="mi_4" href="/reviews.php">Awards</a></li>

<li><a id="mi_5" href="/faq.php">FAQ</a></li>

<!--<li><a id="mi_6" href="/knowledgebase">Help</a></li>-->

<li><a id="mi_8" href="/forum" target="_blank">Forum</a></li>

<li><a id="mi_7" href="/support/index.php">Support</a></li>

<li><a id="mi_2" style="margin-left:50px" href="/filedb.php">File Database</a></li>

</ul>

<script type="text/javascript">

el=document.getElementById("mi_-1");

if (el)

el.className="miactive";

</script>

 

</div>

 

<img class="logo" src="/selogo.png" alt="System Explorer Logo">

</div>

 

<div style="position:absolute;top:25px;left:445px;-moz-box-shadow:0 0 10px #000;-webkit-box-shadow:0 0 10px #000;padding:0;margin:0;width:468;height:60px;z-index:5;">

 

<script>

var r=Math.ceil(3*Math.random())

if (r==2)

{

document.write('<a href="http://www.kqzyfj.com/click-3806651-10542744" onclick="if (pageTracker) pageTracker._trackEvent(\'UPAD\', \'PCTOOLS-1\');" target="_blank"><img src="http://www.tqlkg.com/image-3806651-10542744" width="468" height="60" alt="Registry Mechanic Free Scan" border="0"/></a>');

} else

if (r==1)

{

document.write('<a href="http://www.dpbolvw.net/click-3806651-10545512" onclick="if (pageTracker) pageTracker._trackEvent(\'UPAD\', \'PCTOOLS-2\');" target="_blank"><img src="http://www.awltovhc.com/image-3806651-10545512" width="468" height="60" alt="http://www.pctools.com/desktop-maestro/" border="0"/></a>');

} else

{

document.write('<a href="http://www.tkqlhce.com/click-3806651-10542743" onclick="if (pageTracker) pageTracker._trackEvent(\'UPAD\', \'PCTOOLS-3\');" target="_blank"><img src="http://www.awltovhc.com/image-3806651-10542743" width="468" height="60" alt="" border="0"/></a>');

}

</script>

 

<!-- <iframe src="http://appsmarks.com/newsad.php" width="728" height="90" scrolling="no" frameborder="0">

</iframe>

-->

</div>

 

<div class="content">

 

<div class="dp2">

 

<h1 style="margin-top:0px;margin-bottom:5px;">Thank you for downloading System Explorer 2.3.5</h1>

<p style="text-align:justify;font-size:12px;margin-bottom:20px">

System Explorer is <span class="mp_descb">free</span>, awards winning software for exploration and

management of System Internals. This small software includes many usefull

tools which help you <span class="mp_descb">Keep Your System Under Control</span>. With System Explorer You

get also fast access to <span class="mp_descb">File Database</span> which help you to determine unwanted processes or <span class="mp_descr">threats</span>.

System Explorer is translated into <span class="mp_descb">21 languages</span> and is available for download in <span class="mp_descb">installer</span> and <span class="mp_descb">portable</span> version.

</p>

 

<table>

<tr>

<td>

<script type="text/javascript"><!--

google_ad_client = "pub-2292771559706071";

/* System Explorer Downloading (300x250) */

google_ad_slot = "2735819118";

google_ad_width = 300;

google_ad_height = 250;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

</td>

 

<td valign="top">

<h4 style="margin-bottom:0px;font-size:13px;margin-top:0px;">Our Tip For Hardware Exploration</h4>

<a href="http://www.hwinfo.com"><img src="/hwinfo.png" onclick="if (pageTracker) pageTracker._trackEvent('Odkaz-HWInfo', 'DownloadI');" alt="HWInfo" title="Hardware Information recommended tool" width="260" height="130"></a>

</td>

 

<td>

<script type="text/javascript"><!--

google_ad_client = "pub-2292771559706071";

/* System Explorer Downloading (300x250) */

google_ad_slot = "2735819118";

google_ad_width = 300;

google_ad_height = 250;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

</td>

</tr>

</table>

 

<div style="margin-top:40px">

Your download will begin in a moment. If it doesn't, <a href="/download/1284306978-2c4943e2a994accba0aa2f8223658320/SystemExplorerSetup_235.exe">click here</a> to try again.<br>

Still having trouble? Contact us via Support section.

</div>

 

<script type="text/javascript"><!--

google_ad_client = "pub-2292771559706071";

/* 728x90, downloading */

google_ad_slot = "6951772048";

google_ad_width = 728;

google_ad_height = 90;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

 

 

</div>

 

</div>

 

 

<script>

setTimeout(

function()

{

window.location.href = '/download/1284306978-2c4943e2a994accba0aa2f8223658320/SystemExplorerSetup_235.exe';

}, 3000);

</script>

<div class="bottom">

 

<div class="footer">

© 2007-2010 Mister Group. All Rights Reserved. Contact: admin@mistergroup.org

 

<span class="links">

<a href="http://www.appsmarks.com" target="_blank">AppsMarks</a>

<a href="/referers.php" target="_blank">Referers</a>

<a href="/pad.xml" target="_blank">PAD file</a>

<a href="http://www.facebook.com/pages/SystemExplorer/117964101588862" target="_blank"><img src="/facebook.png" style="position:relative;top:-5px;" alt="Facebook" width="16" height="16" align="middle"></a>

<a href="http://twitter.com/SystemExplorer" target="_blank"><img src="/twittersmall.png" style="position:relative;top:-5px;" alt="Twitter" width="16" height="16" align="middle"></a>

<a href="http://twitter.com/statuses/user_timeline/92200018.rss" target="_blank"><img src="/rss.png" style="position:relative;top:-5px;" width="36" height="14" alt="RSS" align="middle"></a>

</span>

 

<span class="navrcholu">

<script src="http://c1.navrcholu.cz/code?site=108981;t=lb14" type="text/javascript">

</script>

</span>

 

<div class="validator">

<a href="http://validator.w3.org/check?uri=referer">

<img src="http://www.w3.org/Icons/valid-html401" align="right" alt="Valid HTML 4.01 Transitional" height="31" width="88">

</a>

</div>

</div>

</div>

 

 

<!-- Google Tracking-->

<script type="text/javascript">

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

</script>

<script type="text/javascript">

var pageTracker = _gat._getTracker("UA-5036703-2");

pageTracker._initData();

pageTracker._trackPageview();

</script>

 

 

<div id="sad2" style="position:absolute;left:-180px;top:185px;width:160px;height:600px;">

 

<script type="text/javascript"><!--

google_ad_client = "pub-2292771559706071";

/* 160x600, vytvořeno 6.7.10 */

google_ad_slot = "7730991279";

google_ad_width = 160;

google_ad_height = 600;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

</div>

 

<div id="sad1" style="position:absolute;right:-180px;top:185px;width:160px;height:600px;">

 

<script type="text/javascript"><!--

google_ad_client = "pub-2292771559706071";

/* SideAds Right (160x600) */

google_ad_slot = "5473050114";

google_ad_width = 160;

google_ad_height = 600;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

 

</div>

 

<!--

<div style="margin-left:10px;margin-top:10px">

<ascript type="text/javascript" src="http://widgets.amung.us/map.js"></script>

<ascript type="text/javascript">WAU_map('ej2hfxnxzj34', 214, 107, 'night', 'default-blue')</script>

</div>

-->

</body>

</html>)

Link to comment
Share on other sites

  • 3 months later...

Ok, it's working again. Thanks! However, for some odd reason, after changing the name of the app in the variables, it showed right away that it was up to date. But the directory it's pointing to is empty?!?!? So I tried it with some other apps on Download.com and those showed that they should be updated. The name of the app is Bit-Che.

Link to comment
Share on other sites

I would prefer apps own homepage as these download mirrors are not very fast in my eyes(meaning they lag when it comes to updating apps to latest version after app has been updated by maker).This goes for download.com,softpedia,brothersoft,betanews etc...

Link to comment
Share on other sites

I agree Tomorrow... I maintain other functional download site templates for those cases where the author cannot afford the bandwidth required to host their own apps... about 20+ of my 1300+ apps if my memory serves me correctly. Of all my download site templates, my Snapfiles template is my favorite as it is the fastest and most reliable. :) Other than Snapfiles, virtually all of my newly added apps are from the app's homepage if possible using one of my generic templates.

Link to comment
Share on other sites

  • 2 months later...

WinRAR is now only on CNet :(

 

CybTekSol's template is unable to get correct version number but i managed to get it working.For 64bit winrar you have to enter

WinRAR-64-bit

in CNetDownloadName variable.For regular 32bit simple WinRAR will do.

 

Maybe time to update template.And please can you make it faster?.The current one is like a snail crawling on a wet wood (nearly 20 seconds to check)

Link to comment
Share on other sites

I changed the version regex in the CNet template above... works for most of my 34 apps from there. As far as speeding it up... I don't really have the time to tackle it right now. A portion of the lag is because it is necessary to use their search engine to capture the url of the latest version as it changes each time. Other users... feel free to tweak it and post an improved version. ;)

Link to comment
Share on other sites

  • 2 months later...

---------------------------

Ketarin

---------------------------

Failed to import the file: Начальный тег "Regex" в строке 68 не соответствует конечному тегу "b". Строка 68, позиция 33.

---------------------------

ОК

---------------------------

What's wrong? I use this template

Link to comment
Share on other sites

Sounds like it was copied wrong. Make sure you're copying the one up in the white code block, as anything pasted into the forum outside of one of those blocks loses any embedded HTML, which is often required when parsing content.

Link to comment
Share on other sites

Sounds like it was copied wrong. Make sure you're copying the one up in the white code block, as anything pasted into the forum outside of one of those blocks loses any embedded HTML, which is often required when parsing content.

I try copy again, but the same result :(

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.