Karan Rajpal Posted August 11, 2016 Report Share Posted August 11, 2016 Hello, I've been trying to set up Ketarin to download IntelliJ but I can't seem to get it to work. It can be downloaded from the page: https://www.jetbrains.com/idea/download/#section=windows and the download link is of the form: https://download-cf.jetbrains.com/idea/ideaIC-2016.2.1.exe The version number is shown on the page but I'm not able to extract it from the source. Must be some sort of script that gets it. Not sure how I can get it, though. Also, It can be downloaded using the link https://www.jetbrains.com/idea/download/download-thanks.html&platform=windows&code=IIC but when I use this url, Ketarin returns a error saying the file isn't of binary format. Any help would be appreciated. Thanks! Link to comment Share on other sites More sharing options...
Ambimind Posted August 12, 2016 Report Share Posted August 12, 2016 Hello, I've been trying to set up Ketarin to download IntelliJ but I can't seem to get it to work. It can be downloaded from the page: https://www.jetbrains.com/idea/download/#section=windows and the download link is of the form: https://download-cf.jetbrains.com/idea/ideaIC-2016.2.1.exe The version number is shown on the page but I'm not able to extract it from the source. Must be some sort of script that gets it. Not sure how I can get it, though. Also, It can be downloaded using the link https://www.jetbrains.com/idea/download/download-thanks.html&platform=windows&code=IIC but when I use this url, Ketarin returns a error saying the file isn't of binary format. Any help would be appreciated. Thanks! As a general rule, when a website uses JS to populate html dynamically, it may make an XHR request. If so we can use the data, usually simple JSON text, to get what we need. In this case, the XHR request URL is : https://data.services.jetbrains.com/products/releases?code=IIU%2CIIC&latest=true&type=release Note : If they decide to change the API, it is possible that they make use of cookies and post data not encoded in the url. In this case you'll need to check the headers. I've included a working job. Check the "URL" variable in case they modify their versioning scheme. IntelliJ_IC.xml Link to comment Share on other sites More sharing options...
Karan Rajpal Posted August 13, 2016 Author Report Share Posted August 13, 2016 As a general rule, when a website uses JS to populate html dynamically, it may make an XHR request. If so we can use the data, usually simple JSON text, to get what we need. In this case, the XHR request URL is : https://data.services.jetbrains.com/products/releases?code=IIU%2CIIC&latest=true&type=release Note : If they decide to change the API, it is possible that they make use of cookies and post data not encoded in the url. In this case you'll need to check the headers. I've included a working job. Check the "URL" variable in case they modify their versioning scheme. Didn't really understand much of what you've done here to achieve this but man, thank you! I'll dig deeper into your xml and see what you've come up with. Really appreciate the effort. Thanks! 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