I’m using the curl command to get data behind a graph on a website.
curl -k -u 'sensor:xxxxx' 'http://website&json'
This returns it as a json object in the terminal window which I’m not familiar with.
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?
I’ve tried writing it to a text file. Is this correct? where does the file get saved to?
curl -k -u 'sensor:xxxxx' 'http://website' -o output.txt