cutmail's blog

write the code

ターミナルでtwurlの結果をjsonで出力する

phpの場合

% twurl '/1/statuses/home_timeline.json' | php -r 'while(!feof(STDIN)) { print_r(json_decode(fgets(STDIN))); }'

pythonの場合

% twurl '/1/statuses/home_timeline.json' | python -m json.tool