mozilla / http-observatory-cli

The command line tool for the HTTP Observatory
Mozilla Public License 2.0
91 stars 11 forks source link

add csv output mode, add hostname to error messages #4

Closed amuntner closed 8 years ago

amuntner commented 8 years ago

_csv output mode outputs a single line in csv output. _ The score list is quoted with internal " escaped like \" and crlf at the end of each line. Drive it with a shell script like: for i incat hostnames.txt; do httpobs-cli -c -r -z $i;sleep 1; done | tee csvfile.csv It will output a file csvfile.csv which can be imported into a spreadsheet. httpobs-cli outputs errors to stderr so they'll display on the screen but be redirected into csvfile.csv by tee.

**Added hostname to error messages, otherwise they are hard to identify when driving a whole list.

april commented 8 years ago

Looks good to me!