{"podcast":{"title":"CyberCode Academy","slug":"cybercode-academy-7578615","podcast_index_feed_id":7578615,"rss_url":"https://www.spreaker.com/show/6790974/episodes/feed","website_url":"https://www.spreaker.com/podcast/cybercode-academy--6790974","image_url":"https://d3wo5wojvuv7l.cloudfront.net/t_rss_itunes_square_1400/images.spreaker.com/original/5f51ccc7b22fdba95149ffa6346f1533.jpg","author":"CyberCode Academy","episode_count":311,"summary":"Welcome to CyberCode Academy — your audio classroom for Programming and Cybersecurity. 🎧 Each course is divided into a series of short, focused episodes that take you from beginner to advanced level — one lesson at a time. From Python and web development to ethical hacking and digital defense, our content transforms complex concepts into simple, engaging audio learning. Study anywhere, anytime — and level up your skills with CyberCode Academy. 🚀 Learn. Code. Secure. You can listen and download our episodes for free on more than 10 different platforms: https://linktr.ee/cybercode_academy","last_synced_at":"2026-07-27T12:18:25.188608+00:00","page_url":"https://stenobird.com/podcast/cybercode-academy-7578615"},"episode":{"title":"Course 40 - Web Scraping with Python | Episode 10: Navigating and Extracting Web Data with Beautiful Soup","slug":"course-40-web-scraping-with-python-episode-10-navigating-and-extracting-web-data-with-beautiful-soup","published_at":"2026-07-20T06:00:02+00:00","page_url":"https://stenobird.com/podcast/cybercode-academy-7578615/course-40-web-scraping-with-python-episode-10-navigating-and-extracting-web-data-with-beautiful-soup","show_page_url":"https://stenobird.com/podcast/cybercode-academy-7578615","url":"https://www.spreaker.com/episode/course-40-web-scraping-with-python-episode-10-navigating-and-extracting-web-data-with-beautiful-soup--72756824","audio_url":"https://dts.podtrac.com/redirect.mp3/api.spreaker.com/download/episode/72756824/parsing_broken_html_with_beautiful_soup.mp3","summary":"In this lesson, you’ll learn about: how HTML is structured as a tree, how to turn raw pages into navigable data using Beautiful Soup, and how to extract specific elements efficiently1. Understanding the HTML Parse Tree🔹 The Structure of a Web PageEvery web page is a hierarchical tree made of nodes: Root → Children → and Siblings → elements at the same level 🔹 Key Sections → metadata (title, scripts, styles) → visible content 👉 Key Insight Scraping is really about navigating this tree intelligently2. Turning HTML into Data (Beautiful Soup)🔹 The Core ToolUse Beautiful Soup Converts raw HTML → structured Python object Makes navigation simple and readable 🔹 Why It’s Powerful Handles messy HTML Supports multiple parsers Easy to search and extract 3. Choosing the Right Parser🔹 Available ParsersParserStrengthlxmlFast and efficienthtml5libHandles broken HTML🔹 When to Use Each Use lxml → performance Use html5lib → unreliable or malformed pages 👉 Pro Insight Real-world pages are often messy → parser choice matters4. From Request to Parsed Tree🔹 Workflow Overview Send HTTP request Receive HTML Parse with Beautiful Soup Navigate and extract 🔹 Example Setupimport requests from bs4 import BeautifulSoup r = requests.get(\"https://example.com\") soup = BeautifulSoup(r.text, \"lxml\") 5. Extracting Text Content🔹 Headers &amp; Paragraphstitle = soup.h1.string paragraph = soup.p.string 👉 Use Case Blog titles Article content Product descriptions 6. Extracting Attributes (Links &amp; Images)🔹 Accessing Attributeslink = soup.a[\"href\"] image = soup.img[\"src\"] 👉 What You Can Extract URLs Image sources Metadata 7. Working with CSS Classes🔹 Finding Elements by Classitems = soup.find_all(\"div\", class_=\"product\") 🔹 Important Note Classes can be multi-valued 👉 Beautiful Soup handles this intelligently…","meta_description":"In this lesson, you’ll learn about: how HTML is structured as a tree, how to turn raw pages into navigable data using Beautiful Soup, and how to extract s…","key_points":[],"chapters":[],"topics":[],"duration_seconds":1104,"processing_state":"not_requested","actions":[{"name":"request_transcript","method":"POST","url":"https://stenobird.com/v1/public/podcasts/cybercode-academy-7578615/episodes/course-40-web-scraping-with-python-episode-10-navigating-and-extracting-web-data-with-beautiful-soup/transcription-requests","description":"Idempotently request low-priority transcript generation for this episode."},{"name":"read_markdown","method":"GET","url":"https://stenobird.com/podcast/cybercode-academy-7578615/course-40-web-scraping-with-python-episode-10-navigating-and-extracting-web-data-with-beautiful-soup.md","description":"Read the agent-friendly Markdown representation of this episode resource."}]}}