{"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 11: Advanced Filtering and Efficient Extraction with BeautifulSoup","slug":"course-40-web-scraping-with-python-episode-11-advanced-filtering-and-efficient-extraction-with-beautifulsoup","published_at":"2026-07-21T06:00:02+00:00","page_url":"https://stenobird.com/podcast/cybercode-academy-7578615/course-40-web-scraping-with-python-episode-11-advanced-filtering-and-efficient-extraction-with-beautifulsoup","show_page_url":"https://stenobird.com/podcast/cybercode-academy-7578615","url":"https://www.spreaker.com/episode/course-40-web-scraping-with-python-episode-11-advanced-filtering-and-efficient-extraction-with-beautifulsoup--72756846","audio_url":"https://dts.podtrac.com/redirect.mp3/api.spreaker.com/download/episode/72756846/surgical_web_scraping_with_beautiful_soup.mp3","summary":"In this lesson, you’ll learn about: advanced BeautifulSoup filtering techniques, custom extraction logic, real-world link scraping, and performance optimization using SoupStrainer1. Core Extraction Tools: find vs find_all🔹 The Basic Building Blocks🔹 What They DoMethodPurposefind()Returns first matchfind_all()Returns all matches🔹 Basic Examplefrom bs4 import BeautifulSoup import requests html = requests.get(\"https://example.com\").text soup = BeautifulSoup(html, \"lxml\") soup.find(\"p\") soup.find_all(\"a\") 2. Filtering Beyond Tags🔹 Attribute-Based Selectionsoup.find_all(\"img\", src=True) soup.find_all(\"a\", id=\"main-link\") 👉 Key Insight You’re no longer just finding tags—you’re filtering structured conditions3. Using Regular Expressions for Precision🔹 Regex in BeautifulSoupUse Regular Expressions for advanced filtering:import re soup.find_all(\"a\", href=re.compile(\"wiki\")) 🔹 What This Enables Match patterns in URLs Filter partial text Detect structured formats 4. Custom Filtering Functions (Advanced Logic)🔹 When Built-ins Aren’t Enoughdef custom_filter(tag): return tag.has_attr(\"src\") and not tag.has_attr(\"href\") soup.find_all(custom_filter) 🔹 Real Use Cases Images without links Links pointing to specific domains Complex multi-condition filtering 👉 Key Insight You can encode any logic you want in Python5. Real-World Project: Scraping Links🔹 Target Site Workflow🔹 Step 1: Fetch Pageimport requests from bs4 import BeautifulSoup url = \"https://mashable.com\" html = requests.get(url).text soup = BeautifulSoup(html, \"lxml\") 🔹 Step 2: Extract Linkslinks = soup.find_all(\"a\") 6. Absolute vs Relative URLs🔹 The ProblemTypeExampleAbsolute https://site.com/page Relative/page🔹 Fixing Relative Linksfrom urllib.parse import urljoin full_url = urljoin(url, \"/about\") 👉 Key Insight Scrapers must…","meta_description":"In this lesson, you’ll learn about: advanced BeautifulSoup filtering techniques, custom extraction logic, real-world link scraping, and performance optimi…","key_points":[],"chapters":[],"topics":[],"duration_seconds":1033,"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-11-advanced-filtering-and-efficient-extraction-with-beautifulsoup/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-11-advanced-filtering-and-efficient-extraction-with-beautifulsoup.md","description":"Read the agent-friendly Markdown representation of this episode resource."}]}}