Python Universe
1.99K subscribers
103 photos
1 video
1 file
55 links
Everything you need to know about Python programming.

Admin: @haraisen
Feedback: @pythontg_feedbackbot
Download Telegram
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
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