Throw away curl and use httpie

According to curl (pronounced see url </ del> Original FAQ, the development team pronounced * kurl * It seems that it is convenient to use from a program, but the options are difficult to understand.

httpie is a more intuitive curl alternative command. Unless you really like curl, I recommend httpie.

Installation

easy_install httpie
# OR
pip install -U httpie

Example of use

httpie

When curl is used in the back and httpie is used in the foreground. As you can see, httpie automatically colors and the commands are pretty intuitive. Internally, it uses a module called requests in Python. If you're tired of Python's built-in HTTP client, you can look it up and be very happy.

Recommended Posts

Throw away curl and use httpie
For Python 3.4 or later, you should just throw away os.path and use pathlib
Use SQLAlchemy and multiprocessing
Use pyrtm and RTM CLI
Use and integration of "Shodan"