On 2020-08-22 19:35, Gordon Messmer wrote:
On 8/22/20 6:42 PM, ToddAndMargo via users wrote:
https://www.eset.com/us/business/endpoint-security/windows-security/download/
...
Problem is that the revision is generated by a java script.
The version isn't *generated* by JavaScript, it's requested from an API
by JavaScript. The difference being that you don't need to run
JavaScript to get the answer, you just need to query the API.
So, the first step is to turn on Firefox's web developer tools and look
at the Network pane. In that window, load the page above. Each query
detailed in the network pane should indicate the type of response. Look
for the "json" responses. There are only three, so it's easy to find.
(You can do this in Chrome as well, but the "type" is xhr there, and
there are dozens of such responses, so it's much less obvious.)
Now, right-click that entry and select Copy -> Copy as cURL. Past that
into a terminal and hit enter to see the response. You should get a
JSON document. Now you just need to extract the version from that.
There are a variety of tools you can use. My "jq" isn't very good, but
this is pretty close:
curl ... | jq '.files.installer|..|.full_version?'
I'll also mention that in this case specifically, you don't need to
"copy as curl". You can copy just the URL and pass that to curl on the
command line. Some of the time, a site or API may check the referrer or
other headers, and in those cases, it's good to know about "copy as
curl" so try to remember that option.
Thank you!
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx