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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM