{"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 9: Navigating Requests, Redirects, and Timeouts","slug":"course-40-web-scraping-with-python-episode-9-navigating-requests-redirects-and-timeouts","published_at":"2026-07-19T06:00:02+00:00","page_url":"https://stenobird.com/podcast/cybercode-academy-7578615/course-40-web-scraping-with-python-episode-9-navigating-requests-redirects-and-timeouts","show_page_url":"https://stenobird.com/podcast/cybercode-academy-7578615","url":"https://www.spreaker.com/episode/course-40-web-scraping-with-python-episode-9-navigating-requests-redirects-and-timeouts--72756812","audio_url":"https://dts.podtrac.com/redirect.mp3/api.spreaker.com/download/episode/72756812/python_http_protocols_from_urllib_to_requests.mp3","summary":"In this lesson, you’ll learn about: how to handle HTTP requests in Python, compare different libraries, manage redirects and errors, and use modern tools like Requests effectively1. The Big Picture: Talking to the Web🔹 What You’re Really DoingWhen working with HTTP in Python, you're: Sending requests Receiving responses Handling edge cases (errors, redirects, timeouts) 👉 This is the foundation of: Web scraping API integration Automation 2. HTTP Methods Beyond the Basics🔹 Core Methods RecapMethodPurposeGETRetrieve dataPOSTSend dataPUTUpdate (idempotent)DELETERemove🔹 Advanced MethodsMethodUse CaseHEADGet headers only (no body)OPTIONSDiscover server capabilities👉 Pro Insight HEAD is great for checking if a resource exists without downloading it OPTIONS helps when working with APIs and permissions 3. Redirect Handling (Critical in Real-World Scraping)🔹 What is a Redirect?A redirect happens when: Server tells you → “Go to another URL” 🔹 Types of Redirects Safe Redirects GET, HEAD Automatically followed Unsafe Redirects POST, PUT May require confirmation 🔹 Why It Matters Prevent infinite loops Track where data actually comes from Debug login flows or APIs 4. URL Anatomy (Using urllib)🔹 Breaking Down a URLExample:https://example.com/products?id=10#reviews PartMeaningSchemehttpsLocationexample.comPath/productsQueryid=10Fragmentreviews🔹 Tool for ThisUse urllibfrom urllib.parse import urlparse parsed = urlparse(\"https://example.com/products?id=10\") print(parsed.scheme, parsed.netloc) 👉 Why It’s Important Helps build clean scrapers Useful for filtering and routing URLs 5. Error Handling (Making Your Code Bulletproof)🔹 Common ErrorsErrorMeaning403Forbidden (blocked)404Not foundTimeoutServer too slow🔹 Best Practiceimport requests try: r = requests.get(\"https://example.com\", timeout…","meta_description":"In this lesson, you’ll learn about: how to handle HTTP requests in Python, compare different libraries, manage redirects and errors, and use modern tools…","key_points":[],"chapters":[],"topics":[],"duration_seconds":1300,"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-9-navigating-requests-redirects-and-timeouts/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-9-navigating-requests-redirects-and-timeouts.md","description":"Read the agent-friendly Markdown representation of this episode resource."}]}}