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 HTML code - Python Tutorial
From the course: Build Three Real-World Python Applications
Understanding HTML code
- [Narrator] Let's take a moment to understand the general structure of HTML code. You'll notice that HTML code has a lot of similarities in its structure compared to Python. For example, there are indents for code to function within other code, functions we can create, and different variables and classes we can use. One major difference between the HTML code and Python code is tags. HTML code is heavily dependent on tags, where every piece of code needs to have an opening tag and a closing tag. These tags are necessary in order for the web browser to understand how the webpage should be structured, where images need to be located, and what should be a clickable link for web users. For example, the HTML tag is needed for every webpage since this signals to the web browser that this is an HTML document. We can see this if we close the body tag. Every webpage has these HTML tags at the very top and very bottom of the HTML…
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
-
-
-
-