AI LiteracyintermediateVideo + quiz

Collect Web Data Responsibly with Python: APIs, Pages and Robots Rules

Collect data from websites and APIs with Python in a way you can defend.

20 lessons · 1.0 hours
Watch the first lesson freeWelcome: Ickworth Energy and the data it needs · 3 min

Sign in to watch one lesson from this course free.

What you will be able to do

Choose between a download, an API and scraping, and check robots.txt, terms and personal data firstCall JSON APIs and parse HTML pages in Python with a clear User-Agent, timeouts and paginationCollect at a polite pace with backoff and caching, using a browser only when a page needs oneValidate, record and schedule a collection, including fields a language model extracts

About this course

Collect data from websites and APIs with Python in a way you can defend. Choose between a download, an API and scraping; read robots.txt, terms, copyright and personal data rules first; send requests that identify you, page through JSON APIs, parse HTML with Beautiful Soup and use Playwright only when a page needs it; pace, back off and cache; check fields a language model extracts; record provenance and schedule with alarms. The free lab runs on your laptop against a practice site.

AI Literacy

Curriculum

7 modules · 20 lessons · 1.0h

Requirements

Python variables, lists and loops
How to run a script in a terminal
Python 3.12 or later, and uv
The requests and Beautiful Soup libraries
Take the gentlest route to the data
Record what you took, and why

What you walk away with

A Yallo AI Academy certificate of completion, issued when every lesson is complete and the final assessment is passed at 70% or aboveA public verification page, so a stranger can check the certificate without asking you for a filePDF download, and a one-click share to your LinkedIn profile

Yallo AI Academy certifies completion of

Collect Web Data Responsibly with Python: APIs, Pages and Robots Rules