Learn to consume REST APIs with the requests library, handle JSON, paginate and authenticate, then scale up with threading, multiprocessing and asyncio — finishing with a real fetch-parse-store data pipeline into SQLite. Every idea is taught with runnable Python 3.10+ code and a hands-on lab of ten exercises. This course helps you prepare for the Python Institute PCPP certification.
Watch the free preview
HTTP and the requests library — free to watch, no account needed.
What you'll learn
- Consume REST APIs with the requests library, handling status codes and query parameters
- Parse, navigate and produce JSON safely from real API responses
- Authenticate with headers and traverse paginated endpoints with rate-limit-aware retries
- Choose correctly between threading, multiprocessing and asyncio for a given workload
- Build a concurrent fetch-parse-store data pipeline that lands records in SQLite
Syllabus
Talking to REST APIs
HTTP and the requests libraryFree preview
Working with JSON responses
Authentication, Pagination & Reliability
Auth headers and pagination
Rate limiting, errors and retry with backoff
Concurrency in Python
Threading vs multiprocessing vs asyncio — choosing the right model
async/await and asyncio in practice
Building Data Pipelines
Producer/consumer with queues
A fetch → parse → store ETL pipeline to SQLite
Lab — 10 Programming Exercises & Solutions
Programming Exercises 1–5
Programming Exercises 6–10