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 - 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
-
-
-
What is web scraping?2m 57s
-
Introducing the Wisdom Pet Medicine website2m 4s
-
How to explore a webpage2m 45s
-
(Locked)
Understanding HTML code1m 56s
-
(Locked)
Understanding the requests package3m 8s
-
(Locked)
How to use the get() method2m 38s
-
(Locked)
How to retrieve webpage information4m 4s
-
(Locked)
How to retrieve HTML code1m 36s
-
(Locked)
How to use BeautifulSoup2m 20s
-
(Locked)
How to use find() and find_all() methods3m 52s
-
(Locked)
How to loop find_all() methods3m 21s
-
(Locked)
How to retrieve webpage links2m 18s
-
(Locked)
How to write HTML code to a text file2m 7s
-
-
-
-