COURSE SYLLABUS · 67 LESSONS
Web Scraping
A complete web scraping course: HTTP and parsing fundamentals, crawling, browsers, anti-bot engineering, and production-scale data pipelines.
all 67 lessons
01
HTTP Basics for Scraping
Understand HTTP requests and responses that power every scrape.
02
Understanding HTML Structure
Navigate the DOM and find the tags holding your data.
03
requests, Sessions & Headers
Persist cookies and set browser-like headers with requests.
04
CSS Selectors with BeautifulSoup
Target elements precisely with CSS selectors.
05
XPath Selectors
Select elements by structure, position, and text with XPath.
06
Extracting with Regular Expressions
Use regex to pull values from messy markup.
07
Parsing Engines and Text Encoding
Pick fast parsers and fix mojibake with proper encodings.
08
Extracting Article Text and Removing Boilerplate
Pull the main text out of articles with trafilatura, density heuristics, or site rules.
09
Structured Data: JSON-LD, Microdata and Open Graph
Read the schema.org and Open Graph data sites already publish for machines.
10
Handling Pagination
Loop through multiple pages and collect all results.
11
Sitemaps and Feeds
Crawl sitemap.xml and RSS/Atom feeds as structured entry points.
12
Common Crawl and Web Archives
Fetch pages from Common Crawl and the Wayback Machine instead of crawling.
13
Form Submission and Multi-Step Flows
Post forms with hidden fields and walk multi-step wizards.
14
Crawl Strategy and the URL Frontier
Seed URLs, BFS vs DFS, depth limits, and per-host scheduling.
15
Scraping JavaScript-Rendered Pages
Use Playwright to scrape pages rendered by JavaScript.
16
Infinite Scroll and Lazy Loading
Drive lazy-loaded feeds and extract virtualized list data.
17
Real Browser Automation with Playwright
Drive a real Chromium: waits, locators, shadow DOM, iframes, and intercepted traffic.
18
Scraping with Node.js: Cheerio and Playwright
The same scraping fundamentals in JavaScript with Cheerio and Playwright.
19
Finding the Hidden JSON APIs
Reverse engineer the fetch/XHR endpoints behind JavaScript frontends.
20
Debugging with HAR and Mitmproxy
Capture, inspect, and replay traffic with HAR exports and Mitmproxy.
21
robots.txt & Scraping Ethics
Respect robots.txt and scrape responsibly.
22
Legal Considerations
Know the legal boundaries of web scraping.
23
Retries, Errors & Timeouts
Handle network failures with retries and backoff.
24
Rate Limiting and Polite Crawling
Throttle politely, honor Retry-After, and back off on overload.
25
Proxies and IP Rotation
Pick the right proxies, keep sessions sticky, and rotate with discipline.
26
Caching and Crash-Resume
Cache raw HTML, dedupe strictly, and pick up where you crashed.
27
Parallel Scraping with asyncio
Fetch many pages at once with semaphores and connection limits.
28
Storing Scraped Data
Save results to CSV, JSON, and SQLite.
29
Cleaning and Validating Scraped Data
Normalize values, verify shape, and catch layout drift early.
30
Parsing Dates, Prices and Units
Turn localised dates, currencies, and units into clean, typed values.
31
Testing Your Scrapers
Fixture tests, recorded HTTP, and schema checks that catch breakage early.
32
Incremental Scraping and Change Detection
Re-fetch only what changed with ETags, hashes, and lastmod.
33
Downloading Files and Streaming
Stream large binaries, resume with Range, and verify hashes.
34
PDF and Document Extraction
Pull text and tables from PDFs, scans, and office documents.
35
Logins, Tokens & Long-Lived Sessions
Log in with CSRF, persist cookies, and refresh access tokens across runs.
36
Scraping GraphQL APIs
Find GraphQL endpoints, introspect schemas, and paginate with cursors.
37
TLS & HTTP/2 Fingerprinting
Why request libraries get flagged instantly and how TLS fingerprints give you away.
38
When a Site Fights Back
Recognize Cloudflare, DataDome and Akamai challenges, and handle them honestly.
39
Reversing Client-Side Request Signing
Reproduce signed request headers or hand the work back to a real browser.
40
WebSockets and Real-Time Data
Subscribe to live feeds and stream frames from WebSocket endpoints.
41
The Scrapy Framework
Run production pipelines with spiders, item loaders, and auto-throttle.
42
Scaling a Crawl Across Workers
Shared queues, leases, cross-worker rate limits, and graceful shutdown.
43
Scheduling and Monitoring
Run crawls on cron, health-check runs, and alert on stale data.
44
Extracting Data from HTML Tables
Read table rows, handle rowspan/colspan, and export grids to records.
45
httpx, Async Clients & HTTP/2
Swap requests for httpx, run async crawls, and speak HTTP/2 to servers.
46
Extracting from Nested JSON Payloads
Flatten deep API responses, dedupe by stable ID, and paginate JSON.
47
URL Parsing, Canonicalization & Redirects
Resolve relative links, dedupe redirect chains, and store one canonical URL.
48
CAPTCHAs, Challenges & Solving Ethically
Recognize challenge walls, stay on the legitimate side, and know when to quit.
49
OCR: Text from Images and Scanned Documents
Tesseract pipelines that turn scanned pages and image-only docs back into text.
50
Cookies, Sessions & Persistent State
Persist cookie jars across runs and act like one continuous visitor.
51
Consuming REST APIs Cleanly
Paginate JSON endpoints, read rate-limit headers, and cache with ETags.
52
Media Scraping: Images, Video & Streams
Find image variants and stream manifests, verify magic bytes, download in parallel.
53
Data Pipelines and Orchestration
Turn a cron script into resumable, idempotent, retryable data stages.
54
Geo-Targeted and Localized Scraping
Read geo-gated responses, align language with exit IP, and stay legal.
55
Catching Layout Drift with Visual Diffs
Assert shapes, count elements, and diff screenshots to survive redesigns.
56
Search Engines, SERPs & Directories
Harvest results via APIs and HTML-light endpoints, not ToS-violating SERP walks.
57
Browser Session Handoff
Solve once in a browser, then replay cookies and headers in a fast HTTP client.
58
Webhooks & Event-Driven Ingestion
Verify signed deliveries and build idempotent, replayable webhook consumers.
59
Reverse Engineering Mobile APIs
Intercept app traffic with mitmproxy and bypass certificate pinning to find private APIs.
60
LLM-Assisted Extraction
Use language models with schema-constrained output for messy, layout-variable pages.
61
Entity Resolution & Record Linkage
Dedupe and join records that refer to the same real-world entity across sources.
62
Near-Duplicate Detection
Find exact and near-duplicate pages with hashing, shingles, MinHash, and SimHash.
63
Dataset Versioning & Lineage
Snapshot raw payloads, track provenance, and backfill when parsers improve.
64
Cost & Bandwidth Optimization
Compress, revalidate, block unneeded assets, and route work to the cheapest transport.
65
Running Scrapers in the Cloud
Deploy on serverless and containers with queues, scheduling, secrets, and monitoring.
66
Project: Build a Price Monitor
Crawl, store price history, detect changes, and alert, end to end.
67
Capstone: Build a Production Scraper
Assemble every lesson into a compliant, monitored, resumable scraper.