curl 命令返回json结构human readable

在curl命令后面添加 | python -m json.tool

不想显示curl的统计信息,添加 -s参数

例:

curl https://news-at.zhihu.com/api/4/news/latest  -s | python -m json.tool

 

参考:

https://blog.csdn.net/guijiaoba/article/details/78235523

posted @ 2018-12-18 12:07  Mister_W  阅读(2592)  评论(0编辑  收藏  举报