curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Re: Get specified site browser like do

From: callem <callem_at_op.pl>
Date: Wed, 25 Oct 2017 20:03:31 +0200

W dniu 2017-10-25 19:46:48 użytkownik Ray Satiro via curl-users <curl-users_at_cool.haxx.se> napisał:
>
> 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.
 

Thanks !

I was going to dig with htmlUnit or phantomJS, but now this is all I need.

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-10-25