Py
Py
Run
What do you want to learn?
Lessons
⌄
Browse the curriculum
Find your level
Practice problems
Interview prep
Cheat sheets
Career paths
Explore by role
All lessons
Fundamentals
Web development
Data
Engineering
Data science
Machine learning
GenAI & RAG
Automation
DSA / interview
Tools
new
⌄
Online compiler
Playground
Revise
Terminal
SQL playground
Notebook
Build
⌄
Workspaces
Guided projects
My published sites
Blog
Pricing
AI
en
Sign in
Start free
→
Start free
→
loading…
Feedback
💬
Ask PyRun
Home
›
All lessons
›
Automation
›
Regex data extraction
Regex data extraction
Advanced
14 min
Automation
automation · regex · re · parsing
Try it
↓
Lesson
3
of
6
In this track
▾
1
Files & CSV in memory
12 min
2
JSON & API payloads
12 min
3
Regex data extraction
14 min
4
Web scraping with BeautifulSoup
14 min
5
Modelling records with dataclasses
11 min
6
A mini automation pipeline
15 min
←
→
Loading lesson…
←
Previous lesson
JSON & API payloads
Advanced · 12 min
Next lesson
→
Web scraping with BeautifulSoup
Advanced · 14 min
Related lessons
Advanced · 12 min
JSON & API payloads
Parse and build JSON with the json module and navigate nested API-style data confidently.
Advanced · 14 min
Web scraping with BeautifulSoup
Parse an HTML page with BeautifulSoup and extract headings, links and table rows.
Advanced · 12 min
Files & CSV in memory
Read and write text and CSV using io.StringIO and the csv module — the core of every data-cleaning script.