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.
How to use the get() method - Python Tutorial
From the course: Build Three Real-World Python Applications
How to use the get() method
- [Instructor] Since we are using code spaces and have broken up our course code by video, there will often be code that you need to run before the code we are reviewing in the video to be properly run. For this video, we need to import our request package first before we can use it. You can see what code must be run before the current video code by checking the beginning of the coding file in the imports run first section. So we'll click here to import our request package. Now that our request package is installed and imported, we can run our HTTP request for the Wisdom Pet Medicine webpage. So in this coding cell we are going to type in, requests.get, add parentheses quotation marks and Payson our Wisdom Pet Med URL. So we will click up here to run this. This is the general structure of how to execute an HTTP request along with how to use a method from a package. We always need to use the package name to use functions…
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
-
-
-
-