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

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