curl-users
Re: Get specified site browser like do
Date: Wed, 25 Oct 2017 13:46:48 -0400
On 10/25/2017 1:32 PM, callem wrote:
>> You can also export a cURL request that is equivalent to the request the browser makes, in some browsers.
>> https://lornajane.net/posts/2013/chrome-feature-copy-as-curl
> It doesnt work eather.
You can use a debugging proxy like fiddler to monitor the traffic and
see what the javasript is retrieving. In this case it's retrieving a
json file with the version information. You would then pass that to jq
to process it. For example let's say you want the first array item in
wersjedos and that version information, it would look like this:
curl --proto =https -fLsS https://www.raks.pl/assets/wersje.json | jq
--raw-output ".wersjedos | .[0] | .numer | select(type == \"string\")"
To see how to use curl with jq see https://stedolan.github.io/jq/tutorial/
jq questions are out of the scope of this mailing list, you will have to
ask a jq support channel (?) for questions if you need help parsing the
json.
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-10-25