From the course: Build Three Real-World Python Applications

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Understanding the requests package

Understanding the requests package - Python Tutorial

From the course: Build Three Real-World Python Applications

Understanding the requests package

- [Instructor] Now, we will begin our journey with scraping HTML code. The request package is the standard Python package to make HTTP request. An HTTP request is a message sent by a client to a particular host in order to perform an action on a server. This request is made by using components of a URL to provide the information needed to access the resource. The request package makes performing these HTTP requests extremely easy, with no need to manually add query strings to URLs or form-encode the data pulled. Currently, the request package is utilized 30 million times a week to pull HTTP requests. We will thoroughly review how to install and import packages over the next few minutes. This procedure for installing and importing packages is fairly standard for most Python packages available for use. This procedure can be used for installing and importing other packages in this course. In order to use the request…

Contents