From the course: Python: XML, JSON, and the Web

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Overview of the Requests library

Overview of the Requests library - Python Tutorial

From the course: Python: XML, JSON, and the Web

Start my 1-month free trial

Overview of the Requests library

- [Instructor] In the previous chapter, we learned about some of the standard library modules that Python ships with for accessing web services and we also saw that while they are useful by themselves, they do have their drawbacks and there are some better alternatives out there. In this chapter, we'll learn about the Requests library, and how it dramatically simplifies and improves upon the built-in modules. You can learn everything you need to know about the Requests library here at the project's homepage. It's a fairly comprehensive library and covers a lot of ground, so I'm going to highlight the important features here along with how to install and use the library, and then you can feel free to experiment further. First, you need to make sure that you have the Requests module installed. So I'll open a terminal window, and type pip3 install requests and you can see that I'm getting a message back saying that the requirement is already satisfied because I already have Requests…

Contents