Quantcast
Channel: Linux –俺的備忘録 〜なんかいろいろ〜
Viewing all articles
Browse latest Browse all 743

curlにかわるコマンドラインのhttpクライアントコマンド『HTTPie』

$
0
0

ちょっと調べ物をしていたところ、Pythonで書かれたモダンなcurlというようなCUIツール『HTTPie』なるものを知った。

As easy as httpie /aitch-tee-tee-pie/ 🥧 Modern command line HTTP client – user-friendly curl alternative with intuitive UI, JSON support, syntax highlighting, wget-like downloads, extensions, etc. ...
jakubroztocil/httpie - GitHub

 

curlだと色分け表示されずにちょっと見にくいところを色付きで表示してくれたりするらしい。
インストールは簡単で、以下のコマンドで行える。

● macOS

brew install httpie

 

●Debian/Ubuntu

sudo apt install httpie

 

●RHEL/CentOS

apt install httpie

実行ファイルは「http」になっているようだ。使い方はcurlと同じらしい。
細かいオプションの使い方もほとんど変わってないようだ。

http<option>... url


htmやJsonもSyntax Highlightしてくれるので大変見やすい。

 

Web Scraping with Python: Collecting More Data from the Modern Web Web Scraping with Python: Collecting More Data from the Modern Web

Viewing all articles
Browse latest Browse all 743

Trending Articles