Jump to content
Ketarin forum

[SOLVED] How to go to link


soulandmind
 Share

Recommended Posts

Hi

 

I'm trying to create update for XenCenter.

 

From link: http://www.citrix.com/lang/English/lp/lp_1688615.asp

 

I use regex: XenCenter[0-9.a-zA-Z ~`!@#$%^&*()_+=\-\\|[\]{};':"/,<>?]+[\r\n][0-9.a-zA-Z ~`!@#$%^&*()_+=\-\\|[\]{};':"/,<>?]+[\r\n][0-9.a-zA-Z ~`!@#$%^&*()_+=\-\\|[\]{};':"/,<>?]+[\r\n]<a href="#top" onClick="MM_openBrWindow\('([0-9.a-zA-Z ~`!@#$%^&*()_+=\-\\|[\]{};:"/,<>?]+)

 

The result is html page and there is a proper link to download. How to tell Ketarin to follow to that page and search proper download link?

 

I hope that everything is clear... ;)

Let me know :)

 

Best Regards

Mateusz Blaszka

Edited by soulandmind
Link to comment
Share on other sites

Hm, does not seem too difficult. I don't know what you intend to do with that horrible regex, but you just need to extract

 

http://downloadns.citrix.com.edgesuite.net/5158/XenServer-5.6.0-install-cd.iso

 

from the site you mentioned. Can probably be done with a start/end combination.

Then create a new variable, based on this URL, and extract

 

<a href=http://downloadns.citrix.com.edgesuite.net/akdlm/5158/XenServer-5.6.0-install-cd.iso>click here</a>

 

which seems to be the final download URL. Though it seems like you only need to add "akdlm" to the previously extracted URL anyway, which could be done with a replace function like replace "edgesuite.net/" with "edgesuite.net/akdlm/".

 

Does that help?

Link to comment
Share on other sites

Hm, does not seem too difficult. I don't know what you intend to do with that horrible regex, but you just need to extract

 

http://downloadns.citrix.com.edgesuite.net/5158/XenServer-5.6.0-install-cd.iso

 

from the site you mentioned. Can probably be done with a start/end combination.

Then create a new variable, based on this URL, and extract

 

<a href=http://downloadns.citrix.com.edgesuite.net/akdlm/5158/XenServer-5.6.0-install-cd.iso>click here</a>

 

which seems to be the final download URL. Though it seems like you only need to add "akdlm" to the previously extracted URL anyway, which could be done with a replace function like replace "edgesuite.net/" with "edgesuite.net/akdlm/".

 

Does that help?

 

Hi

 

Thanks for answer.

 

You wrote about XenServer but I tried to download XenCenter ;)

 

Anyway, I know that this regex is horrible but it's my first ;)

 

I found solution last night. Just in 'Contents for URL' text box I wrote variable. Simple.

 

Everyone can find XenConvert and XenCenter on online database now. :)

 

Ketarin is amazing tool for me!

 

Best Regards for everyone

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.