Something with the download page changed recently?

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Something with the download page changed recently?

12 Aug 2023, 13:18

I have my own script to parse the ahk download pages (1.0, 1.1, and 2.0), and as of today it gets a "Just a moment..." page with what looks like a bunch of Base64 text.

Is parsing the download page more complex than normal?

I tried just using the normal download command and here's what I get:

Code: Select all

<!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="robots" content="noindex,nofollow"><meta name="viewport" content="width=device-width,initial-scale=1"><link href="/cdn-cgi/styles/challenges.css" rel="stylesheet"></head><body class="no-js"><div class="main-wrapper" role="main"><div class="main-content"><noscript><div id="challenge-error-title"><div class="h2"><span class="icon-wrapper"><div class="heading-icon warning-icon"></div></span><span id="challenge-error-text">Enable JavaScript and cookies to continue</span></div></div></noscript></div></div><script>(function(){window._cf_chl_opt={cvId: '2',cZone: 'www.autohotkey.com',cType: 'managed',cNounce: '20453',cRay: '7f5a9e813a432c7e',cHash: '250e6aeb5fd1c16',cUPMDTk: "\/download\/1.1?__cf_chl_tk=aI4FZvcw.k3BvuyP9D0my2O91OcNdloVC5jCVhju3RU-1691863239-0-gaNycGzNCbs",cFPWv: 'b',cTTimeMs: '1000',cMTimeMs: '0',cTplV: 5,cTplB: 'cf',cK: "",fa: "/download/1.1?__cf_chl_f_tk=aI4FZvcw.k3BvuyP9D0my2O91OcNdloVC5jCVhju3RU-1691863239-0-gaNycGzNCbs",md: "5RArXUr_ULtVs7jAZXBpzkz3PsdqZH0T_8L05UyCMcU-1691863239-0-AaOfTRRLPg_IJspAnTwcGo1eoLwsiRK_cxY-Pa6dlBqRF0TpEdKnd3g5E_-Y-DR1w-mwYyImXAY6FoKV3SKmtpJl7cMT4MW5872D4MlEGgAfDG-xrR_yvmkInH_54bu1VlknYm3XFXgIZ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aUQo7mL9PLfZEGRT_FILrN-awrXYTC4D68YtN5suw1OxSrMLj-aZ_MQcBcP11v5yeiVpkWPwpNJrAyvh-5Dr0MrMFiP5rvnb2H7ottUZrZnzRLqPmsBFSl0vxNnxxVxUbcwQ",cRq: {ru: 'aHR0cHM6Ly93d3cuYXV0b2hvdGtleS5jb20vZG93bmxvYWQvMS4x',ra: 'QXV0b0hvdGtleQ==',rm: 'R0VU',d: 'DSVwNaT1mVaThGN4O+OcROzpcI4DOwpqunoRqxRrV3nU3QViieHHuBM7HoS5B3XfVaYFea8AQq8LYlkHbrRSUlC0Gjc4aFaiA+WmXKad0X5sT10Yt4/sCWS6IQMQKBwIrM+0Ds1YeuEhGW4vnuh1ePSeeqFRMH6MkUxshY3iwqVjQdR2QzJ7o0Rw06QsPR0U0MbGkuE08TiwhInitAfglfnf/Ve1E1HhbN1nsx9qY9UTG5oklHL/SQKOtlvW1mFG4WiyesPIa4b2Rb6S9wIp2g1gKngc4HthXL+5CI5Y7AoyhgQHtHsG2vfMhPyBR7cdBBqetUGO8amgRVBupgQySX/9BxrKNSCe0QBbSirUNGbtoVU2+/pqy2LjkIGHC68P7kl9tEoq0ntma8fb7a22Bt1rWcJtPdeefIE/boUOgVgs5/BklIzhge5abmCpNvQzXTolEeNOh6nZ0lJa/i80Og==',t: 'MTY5MTg2MzIzOS44NzkwMDA=',cT: Math.floor(Date.now() / 1000),m: 'oG3HcZk2ewTNPvuehdtmHfYmLYobQmeM7SkGji0pW8Q=',i1: 'aZa1UVcPRFJaiHQRbn0ucw==',i2: '5sWBWAAE+ULKlsptTSwZuQ==',zh: '7HQcobp3K6H09pr/nGTI9oxIXUjIKSZbLz0il7CAMSA=',uh: 'dc45Sze+MYtsCSkSWrWLhuDert1j/6N8/Msc0J4BPyI=',hh: '23nUAWHWE3jYr1IhewWxvDEyd/FxBpLUcEnW/thlDQ4=',}};var cpo = document.createElement('script');cpo.src = '/cdn-cgi/challenge-platform/h/b/orchestrate/chl_page/v1?ray=7f5a9e813a432c7e';window._cf_chl_opt.cOgUHash = location.hash === '' && location.href.indexOf('#') !== -1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' && location.href.slice(0, location.href.length - window._cf_chl_opt.cOgUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history && window.history.replaceState) {var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;history.replaceState(null, null, "\/download\/1.1?__cf_chl_rt_tk=aI4FZvcw.k3BvuyP9D0my2O91OcNdloVC5jCVhju3RU-1691863239-0-gaNycGzNCbs" + window._cf_chl_opt.cOgUHash);cpo.onload = function() {history.replaceState(null, null, ogU);};}document.getElementsByTagName('head')[0].appendChild(cpo);}());</script></body></html>

I'm guessing this might be a cloudflare change.

Any tips would be greatly appreciated.
gregster
Posts: 9035
Joined: 30 Sep 2013, 06:48

Re: Something with the download page changed recently?

12 Aug 2023, 18:22

That might be related to the (temporary) cloudflare check against automated attacks which has been activated a few days ago.
It seems the recent slow forum problem was solved when tank purged the server cache.
If there are currently no signs for an attack, perhaps the cloudflare "under attack" mode can be lifted again. We should ask @joedf.
But it's not unlikely that this check will come back some day (as long as it is needed).

But do you really need to parse the download page regularly? To check for new versions, you could perhaps parse the AHK github releases page, or smth simpler like
https://www.autohotkey.com/download/1.1/version.txt
https://www.autohotkey.com/download/2.0/version.txt
Or are they currently blocked for you as well?
User avatar
joedf
Posts: 8966
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Something with the download page changed recently?

12 Aug 2023, 23:04

Indeed Cloudflare... I am still getting some slow downs, but I can definitely turn back off if you think it makes sense now.
I was gonna suggest the *.txt links as well. In fact, I'd say that's the recommended source for the latest versions.
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Something with the download page changed recently?

13 Aug 2023, 05:32

Thanks guys. I'll take a look at doing this better soon.

@joedf Which txt links are you referring to. Sorry to say I'm not aware of these links.

I'd gladly use the github api over parsing the download page, but only the installer is offered for download, not the zip. Is it possible to use the installer like a zip file and just decompress the files to a specified location?

This is all part of my "AHK Portable Installer" since a while ago. Updates are only checked at max once per day, if the user even opens the program. I don't usually open it unless I'm installing/uninstalling a new version, and I usually wait for forum announcements to do that.
User avatar
kczx3
Posts: 1643
Joined: 06 Oct 2015, 21:39

Re: Something with the download page changed recently?

13 Aug 2023, 12:49

There’s also https://www.autohotkey.com/download/versions.txt which you can use to generate the version specific urls
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Something with the download page changed recently?

13 Aug 2023, 13:51

Interesting. I had not thought of generating the URLs from the version.txt files. Though that is the first thing that my script checks before parsing the download page.

And i think that is the part that failed. I'll double check that.

Thanks to everyone for the clarification.
lexikos
Posts: 9593
Joined: 30 Sep 2013, 04:07
Contact:

Re: Something with the download page changed recently?

13 Aug 2023, 21:44

The v2 installer is a upx-compressed compiled script. I don't think I implemented a switch for "extracting", but it could be done.

You could determine the available versions from GitHub and build a URL from that, but if you can't automate the version.txt download, I suppose you'd have the same problem with the zip.
User avatar
joedf
Posts: 8966
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Something with the download page changed recently?

14 Aug 2023, 00:40

Yes right, you could use this handy link, it will redirect to the latest: https://github.com/AutoHotkey/AutoHotkey/releases/latest
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
lexikos
Posts: 9593
Joined: 30 Sep 2013, 04:07
Contact:

Re: Something with the download page changed recently?

14 Aug 2023, 00:51

The GitHub API has better ways to get information about releases, without scraping/parsing HTML.
neogna2
Posts: 591
Joined: 15 Sep 2016, 15:44

Re: Something with the download page changed recently?

14 Aug 2023, 06:44

If not a big hassle I request that github releases also include the .zip version.
Last edited by neogna2 on 30 Aug 2023, 08:59, edited 2 times in total.
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Something with the download page changed recently?

15 Aug 2023, 13:34

@lexikos Yes I certainly would prefer to use the GibHub API. As neogna2 said, it would be nice if the zip files could be included on GitHub, if possible. Or if there could be a switch on the installer to only extract, that would work equally well for my uses, then the zip would not be necessary.

EDIT: And if extraction could be done via the command line, that would be ideal for my uses.
neogna2
Posts: 591
Joined: 15 Sep 2016, 15:44

Re: Something with the download page changed recently?

30 Aug 2023, 08:59

I noticed that with v2.0.6 today the GitHub release now includes the .zip version. Thank you Lexikos!

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: kunkel321, Noitalommi_2, w_i_k_i_d and 67 guests