Jump to content
Ketarin forum

(download) variable


mickythekiller
 Share

Recommended Posts

{download} is not a built-in variable. Most people just name their custom variable {download} because it is the simplest.

 

If you go to the variables window of any application profile in Ketarin the variables list on the left is the name, and on the right is 'where' the information will come from, and also 'what' information will be processed.

 

Most people click on the circle "Content from URL (Regular Expression)" because we are used to using regex to get the link, but you can use the 'start/end' one if regex is not your thing.

 

The first bar underneath that is: Contents from URL (The website address that has the download links you want)

Search within contents: This is just a quick 'search' function that helps you find the part on the page that would have the link so you can construct your regex properly

Use regular expression: The regex <- the result from this regex is what the highlighted variable on the left will be populated with.

 

Example

Regex: [^ "'<>\*]+\.exe

Variable name on the left: download

This is my default regex and it will find 90% of the first exe link on the page. It would return a link like this: http://www.fosshub.com:8080/download/mp3DC220.exe

 

So now {download} will expand to: http://www.fosshub.com:8080/download/mp3DC220.exe

 

Hope that helps.

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.