O'Reilly logo

Python Requests Essentials by Bala Subrahmanyam Varanasi, Rakesh Vidya Chandra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Essence of Requests

As with HTTP/1.0, HTTP/1.1 has a lot of perks and added features like reusing a connection multiple times which decreases the considerable overhead, keep-alive mechanism, and so on. And fortunately, requests is built from it, giving us the benefits of interacting with the web smoothly and seamlessly. There is no need to manually add query strings to our URLs, or to encode our POST data. Keep-alive and HTTP connection pooling are 100 percent automatic, powered by urllib3, which is embedded within requests. With requests we are gifted with a means to forget about encoding parameters again and again, irrespective of whether it is GET/POST.

There is no requirement for manually adding query strings to the URLs, and also to the features ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required