HTTP Requests
๐ธRequests is an elegant and simple HTTP library for Python. It allows you to send HTTP/1.1 requests extremely easy, so you can focus on interacting with services and consuming data in your application.
โ๏ธInstallation
๐Docs
๐Pythonโs Requests Library (Guide)
#requests
๐ธRequests is an elegant and simple HTTP library for Python. It allows you to send HTTP/1.1 requests extremely easy, so you can focus on interacting with services and consuming data in your application.
โ๏ธInstallation
pip install requests
The most-commonly-used HTTP methods are GET and POST:requests.get(url)
requests.post(url, data=somedictdata)
Each of there functions returns a Response
. It's a really powerful object for inspecting the results of the request. We can get all the information we need from this object like text, status code or encoding.๐Docs
๐Pythonโs Requests Library (Guide)
#requests