HTML Tags and Attributes
Web Scraping in Python
Thomas Laetsch
Data Scientist, NYU
Do we have to?
- Information within HTML tags can be valuable
- Extract link URLs
- Easier way to select elements
Tag, you're it!

- We've seen tag names such as html, div, and p.
- The attribute name is followed by = followed by information assigned to that attribute, usually quoted text.
Let's "div"vy up the tag

- id attribute should be unique
- class attribute doesn't need to be unique
"a" be linkin'

- a tags are for hyperlinks
- href attribute tells what link to go to
Et Tu, Attributes?
Web Scraping in Python
Preparing Video For Download...