Curl command, Json data to excel
Hi there,
I'm using the curl command to get data behind a graph on a website. Code:
curl -k -u 'password' 'http://website&json' What I would like to do is to write the data into a text file that I can import into excel etc. Would anybody be able to advise me how to do this? Thanks tom |
use the -o paramater:
Code:
curl whatever -o output.txt Same thing, but also search for 'json to csv' and pick your poison. |
Thanks for your reply.
Do you mean like from this? Code:
curl -k -u 'sensor:xxxxx' 'http://172.31.2.43:4243/api/query/?start=2014/08/11-08:02:19&end=2014/08/11-10:00:00&m=avg:SENS_NITROGEN_DIOXIDE%7Bsender_id=bce76eca-b591-11e3-b2f8-984fee001002%7D&json' Code:
curl -k -u 'sensor:xxxxx' 'http://172.31.2.43:4243/api/query/?start=2014/08/11-08:02:19&end=2014/08/11-10:00:00&m=avg:SENS_NITROGEN_DIOXIDE%7Bsender_id=bce76eca-b591-11e3-b2f8-984fee001002%7D' -o output.txt thanks |
Quote:
|
All times are GMT -5. The time now is 09:12 AM. |