Data Scraping: Lesson 1
The video introduces data scraping as a way to collect information directly from websites, giving analysts more flexibility than relying on pre-made CSV files. Using basketball-reference.com as an example, the instructor shows how to inspect a webpage's HTML to locate key data like player stats. Viewers learn the basics of HTML structure—especially table-related tags like <tr> for rows and <td> for data cells—and how data like a player’s age or points per game is embedded in this code. The instructor also previews two Python tools: requests, which fetches a page’s HTML, and beautifulsoup, which parses and extracts specific elements. Though no code is written yet, the focus is on building an understanding of how website structure underpins successful scraping.