From the course: Build Three Real-World Python Applications
Introducing the Wisdom Pet Medicine website - Python Tutorial
From the course: Build Three Real-World Python Applications
Introducing the Wisdom Pet Medicine website
- [Presenter] Let's imagine you just got a new dog called Rover and you need to find a new veterinarian for him. You may want to compare multiple veterinarian practices to see which one is the best. A great way to do this is by using web scraping to gather important information from the different veterinarian websites, such as what services they offer, who their staff are, and any feature testimonials they have. Let's run through this together. Our search begins with Wisdom Pet Medicine. Wisdom Pet Medicine is a fictitious company that offers veterinary and grooming services for its clients. You can navigate to the Wisdom Pet Medicine website by going to the URL, www.wisdompetmed.com. Once you navigate to the website, you should see the homepage of Wisdom Pet Medicine. The homepage shows us a few menu options along with the changing image showing a variety of pets the veterinarians have taken care of. This website is structured as one cohesive webpage with five sections you can navigate to. The five sections are Home, Mission, Services, Staff, and Testimonials. You can either scroll or click on the webpage menu to navigate to which section you wish to see. For example, we can click on the Mission menu option here. This will scroll us down to the mission section. Here we can see what Wisdom Pet Medicine strives to do for its clients. You can also scroll to the Services section like so. In the services section, we can see the different services Wisdom Pet Medicine provides, such as grooming, nutrition, and pest control. You can also scroll to see who the staff members are. So here we see we have Dr. Winthrop, Dr. Chase, and Dr. Sanders. You can also scroll to see any feature testimonials. These are testimonials from some of Wisdom Pet Medicine's clients. Now that we are familiar with the website itself and its general structure, we can begin to explore the code behind what we are seeing on the webpage.
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
-
-
-
-