Jump to content
Ketarin forum

Gozi

Members
  • Posts

    23
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Gozi's Achievements

Newbie

Newbie (1/14)

  1. Works great. Download.com delivers the version as value. Changing the Regex for version in: name="productVersion" value="(.*?)" will help for other Apps like Java JRE which does not run with your code correctly ;-) The application name is delivered in the same way too, so it can be automated like Filehippo by ketarin. Thats the piece of HTML Code from Download.com for DEAMON Tools Net in the same line ..... name="productName" value="DAEMON Tools Net" ....
  2. THX Flo, its really fast. But {property:WebsiteUrl} does not work any more. Any Idea?
  3. Hi, I always wanted the possibility to scan a folder automatically and generate a HTML-Page like Softpedia / Filehippo.... for all my downloads. The Challenge: No Web server required! Minimum manual editing All informations in one place Now I would like to proudly present... The solution: Well, I´ve done this in a "just for fun"-project with some batch, VBS and Javascript code (project size 35KB). And YES, it´s a little bit "quick and dirty", the way I like :-) For prototyping I used Ketarin to update my apps and generate a ".info" file with Javascript content. This is done with a new Softpedia template (version > 2.0) based on my submited Softpedia template. It pastes the file {appname}.key, if exists, in the .info-file, where I´ve edited the serial keys required. MY Files are all on a NAS and the HTML file too, so I can run it from every PC. When you open the HTML it will automatically read all .info files and generates itself dynamically and always up to date. Supported features (mostly grabbed from Softpedia) Application name, version, screen shot, rating, description, OS, license, license key, homepage link, comments, category, download link directly from NAS. The advantage of this solution is, you can edit your own .info files for other apps not downloaded with Ketarin too and soon you have your own private Softpedia at home. I would post my files here for every one interested to use or further development (with Flo´s permission!). Everyone with a little experience in HTML can adjust the page for his needs. How it looks like: -- (Folder) // Where all my apps are stored |-(img) // some little graphics for the web page | |appname.extension // the app |appname.info // All information about the app |appname.key // the serial key is stored in this file to avoid overwriting |appname.png// the screen shot | |Ketarin_HDB.bat // This batch scans the folder and generates a list of all ".info" files |Ketarin_HDB.vbs // This VBS forms the output of the batch file for compatibility with javascript |Ketarin_HDB.js // This is the generated file list in javascript |Ketarin_HDB.css // CSS sheet for the web page |Ketarin_HDB.html // This is the Web page, which you would open to see all your files Its already up and running with Firefox: http://img87.imageshack.us/img87/7346/khdb.png Run Speed: ~ 15 apps / sec ! Pretty fast, but would be much faster, if you would not use the big screen shots as thumbnail as I do Next steps: Using frameset Generating HTML Anchors (A-Z) A little search engine Sorting possibility Till now, I used my Softpedia template version 1.94 and have already some .info files, which are not compatible with this solution. So there is a progress bar implemented telling me how many files could be parsed successfully in the page. Would you like that?
  4. THX all, but it doesn´t work. Maybe I´m unable to see the fault, or I missunderstand. Thats the quick example. <?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="5b2368fd-4ed1-4a73-855b-c271bed46a45"> <SourceTemplate><![CDATA[]]></SourceTemplate> <WebsiteUrl /> <UserAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)</UserAgent> <UserNotes /> <LastFileSize>152930</LastFileSize> <LastFileDate>2010-10-13T22:57:29.7176</LastFileDate> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator>ForTesting</VariableChangeIndicator> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <SetupInstructions /> <Variables> <item> <key> <string>SFlatest</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex /> <Url>http://sourceforge.net/projects/unetbootin/files/</Url> <Name>SFlatest</Name> </UrlVariable> </value> </item> <item> <key> <string>Match1</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>dload filename { url: '(.*?).exe</Regex> <Url>http://sourceforge.net/projects/unetbootin/files/</Url> <Name>Match1</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <Url>http://sourceforge.net/projects/unetbootin/files/</Url> <TextualContent>{Match1:split:-:-1}</TextualContent> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>url</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{Match1}.exe</TextualContent> <Name>url</Name> </UrlVariable> </value> </item> <item> <key> <string>ForTesting</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>i simulate an update</TextualContent> <Name>ForTesting</Name> </UrlVariable> </value> </item> <item> <key> <string>preupdate-url</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{Match1}.exe</TextualContent> <Name>preupdate-url</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand>start "" /wait curl -L -o "{2DIR}\UNetbootin-{version}.exe" "{preupdate-url}" & exit 2</ExecutePreCommand> <ExecuteCommandType>Batch</ExecuteCommandType> <ExecutePreCommandType>Batch</ExecutePreCommandType> <Category> Tools</Category> <SourceType>FixedUrl</SourceType> <PreviousLocation>q:\software\UNetbootin_494.jpg</PreviousLocation> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated>2010-10-13T22:57:29.7176</LastUpdated> <TargetPath>{2DIR}\{appname}_{version}.{url:ext}</TargetPath> <FixedDownloadUrl /> <Name>UNetbootin</Name> </ApplicationJob> </Jobs>
  5. I did it as above. {preupdate-url} is defined too, but as long as Ketarins "URL" field is empty, it doesn´t execute the pre-command. :/ It seems Ketarin always checks the URL field? You do not have this problem?
  6. Hi josh, maybe you can help me out with start " /wait COMMAND. Any idea to bypass the download directly to wget/curl, but without the need to set an URL in ketarin? Ketarin doesn´t start the pre download Command, even "Force Download" does not work. How did you solve it?
  7. Glad to see the feedback I did just download the compiled win32 version without SSL. cUrl is really impressive and there are other projects based on cUrl like CurlFtpFS (using FTP as filesystem).
  8. sadly, I wasn´t able to get wget to work. With curl it was done in 2 minutes
  9. Hi josh, !!!!GREAT!!!! I was not searching for that, but now I found it ;-) I think I will use it for my templates and my next project: - loading the apps, descriptions and screenshots with ketarin - generating an INI - parsing the INI with Java script - putting all to gether on a local website ...... and I have my own web based software database, without using apache or sql. That could be nice....
  10. Hi all, finally I found an easy way to get files from redirecting sites like sourceforge. Requirement get curl for win32 http://curl.haxx.se/download.html There are two versions, one with SSL and one without. The manpage http://curl.haxx.se/docs/manpage.html Demonstration - Go to SF, project Unetbootin for example http://sourceforge.net/projects/unetbootin/ - now click download now! - you´ll see the website for choosing a mirror and the direct link. You know and love this site! - just copy the url of the site http://sourceforge.net/projects/unetbootin/files/UNetbootin/494/unetbootin-windows-494.exe/download Open cmd.exe (dos box) and just test this: curl -L -o myfilename.exe "http://sourceforge.net/projects/unetbootin/files/UNetbootin/494/unetbootin-windows-494.exe/download" You´ll see curl getting the HTML and waiting for the binary. After few seconds the download will start like known from IE or Firefox and you´ve successfully downloaded the binary. Thats all!!!! Just need to define the filename and get the version and you can use Ketarin´s COMMANDs for getting your files. Take a look on the man page. curl supports FTP, user-agent, referer, resume, AND COOKIES! Isn´t that great? A Quick Example: <?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="5b2368fd-4ed1-4a73-855b-c271bed46a45"> <SourceTemplate><![CDATA[]]></SourceTemplate> <WebsiteUrl /> <UserAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)</UserAgent> <UserNotes /> <LastFileSize>152930</LastFileSize> <LastFileDate>2010-10-13T22:35:01+02:00</LastFileDate> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator>version</VariableChangeIndicator> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <SetupInstructions /> <Variables> <item> <key> <string>SFlatest</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex /> <Url>http://sourceforge.net/projects/unetbootin/files/</Url> <Name>SFlatest</Name> </UrlVariable> </value> </item> <item> <key> <string>Match1</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>dload filename { url: '(.*?).exe</Regex> <Url>http://sourceforge.net/projects/unetbootin/files/</Url> <Name>Match1</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <Url>http://sourceforge.net/projects/unetbootin/files/</Url> <TextualContent>{Match1:split:-:-1}</TextualContent> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>url</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{Match1}.exe</TextualContent> <Name>url</Name> </UrlVariable> </value> </item> <item> <key> <string>ForTesting</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>df</TextualContent> <Name>ForTesting</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand>curl -L -o "{2DIR}\UNetbootin-{version}.exe" "{url}" </ExecutePreCommand> <ExecuteCommandType>Batch</ExecuteCommandType> <ExecutePreCommandType>Batch</ExecutePreCommandType> <Category> Tools</Category> <SourceType>FixedUrl</SourceType> <PreviousLocation>q:\software\UNetbootin_494.jpg</PreviousLocation> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated>2010-10-13T22:57:29.7176+02:00</LastUpdated> <TargetPath>{2DIR}\{appname}_{version}.{url:ext}</TargetPath> <FixedDownloadUrl>http://www.wetterzentrale.de/pics/D2u.jpg</FixedDownloadUrl> <Name>UNetbootin</Name> </ApplicationJob> </Jobs> Open the log to see whats happening. Remember: Ketarin allways needs a link to initialize the download, so I took a virtual link from an alterating JPG. @Flo: This could be the next Request: The pre Update command should be be always executed if an update is available (checking {version}). Even if URL is empty. OR Ketarin should have a "on update" command ;-)
  11. It should work with my submitted template above (Inkscape Portable), http://sourceforge.net/projects/winmerge/files/stable/ (stable subdirectory for winmerge) and a little adjustment. Theres a Regex for getting the newest subdirectory, Cd to the Dir an to download the file with the right extension. With your expertise in Regex , you´ll be able to get the latest release with the wanted extension easily. I´m actually working on a new template with better support for SubDir and a little Wiki with some hints. The first Beta is working. Maybe its ready till weekend.
  12. So, I just saw you´ve implemented the new split-function in the new Beta 9. Thats the better and more simplified way, as my thoughts for sure :-) THX a lot
  13. Hi Shawn, only another dirty idea...... ;-) if you can parse the content for {varname} the random function can be done over Ketarin command and a simple batch Set /a Randomized=%random% This will give you a number between 1-32767 Combined with some If-...Else Commands you could generate any number or Char you like and with wget.exe (as I use in my Softpedia template) you can download the source. BUT you need a dummy Download link with alterating content for ketarin to initialize the download. EDIT: This could be the dummy with alterating content. It changes every 5 min. http://www.wetteronline.de/daten/sat/2010/10/07/eurf1900.jpg?1286478000
  14. Hey floele, and the next one ;-) In the new Beta you´ve implemented the Variable="VariableName". Really great! This is the way to define dropdown menus: <TextualContent><placeholder name="Release?" value="New" options="maverick|lucid|jaunty|hardy" /></TextualContent> Could you implement the variable method for Options too? TextualContent><placeholder name="Release?" value="New" options="{match1}|{match2}|{match3}|{match4}" /></TextualContent> I would grab a whole site, get the whole files on the site and let the user select the desired file per drop down menu: Like: AppName.Portable AppName.X64 Appame.gz AppName.win32 How many functions can I ask for, till you kick me? I have many more *just kidding ;-)
  15. Ok. My fault to put too many request in one post. We´ve got a Variable "Test" with content Appname-irgendwas-nochwas-dir-version-Freeware-win32.exe I want the part Appname (ok easy), maybe the third one, and last one. As long as I know the max count, I could use {test:split:-:6} to get "win32.exe" for my needs. What I´m missing is a function like {test:split:-:last} which would let me grab this without knowing the part number and max count of splits. Another example (and thats what I want to use it for) is spliting a webpage with tables, classes and rows. I know the last class, or table or what ever can be defined with a <TAG> is what I need, but the max count of splits is unkown and alterates for different application (like Softpedia), or shown advertisements (many webpages). Next I put the different Classes in one Array {myArray:Regex1, Regex2,Regex3,........} Next I would regex the saved content of my array and not loading the url any more to extract desired information. But there´s no way to see what the result of my doing is, cuz in Ketarin we´re only able to regex an url and see the blue and red lines. Hopefully it´s now more clear? Alternatively I could explain it in german....would be much easier ;-)
×
×
  • 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.