Build a Web Scraper in Python

Build an SEO-flavored crawler in Python that maps internal links and teaches you how scraping really works.

Also available in:

gotypescript

What you'll learn in this Python course

Use Python to build a web crawler that scrapes pages. It's a tool that any SEO expert would be happy to have. You'll make HTTP requests and parse HTML to generate reports that can easily marshaled to standard output or a file. If you're interested in getting a job doing data analysis, this project will teach you how Python can be used to build a command-line application.

Chapter List

1
Setup
Get started with web scraping by setting up your Python environment and building essential functions to normalize URLs and extract links from HTML content.
2
Crawling
Build the core crawling engine by implementing the main crawler logic, HTTP request handling, and recursive page discovery to systematically traverse websites.
3
Concurrency
Learn to speed up your web crawler using asynchronous programming and concurrency, crawling multiple pages simultaneously while respecting configurable limits.
4
Reporting
Learn to analyze and export your web scraping results with custom reporting tools that generate both human-readable summaries and JSON datasets for further analysis.

Join 1,402 students in the Build a Web Scraper in Python course

Read reviews of their learning experiences

Very good at taking you through it step by step.

(3/5)
Rasmus Holm Høyrup profile image

Rasmus Holm Høyrup

Denmark

Awesome! Build a functional web scraper in python!

(5/5)
Omega Rae profile image

Omega Rae

United States

Sometimes very hard (coroutines), but overall a really enjoyable course!

(5/5)
Thijs Dekker profile image

Thijs Dekker

Utrecht, the Netherlands

A bit disappointed with this one... I was expecting coaching on: -BeautifulSoup tips and tricks -Using the browser console to inspect a page and extract specific data -Formatting, cleaning, and reporting scraped data -Avoiding IP bans Instead, I ended up: -Writing unit tests -Being told to learn BeautifulSoup by reading the docs -Writing async code for the first time without foundational knowledge.

(2/5)
Sam  profile image

Sam

Canada

Very Useful Course. Very Fun, but some of the lessons take a LONG time if you manually write the tests like they ask.

(5/5)
Hair SandwichTV profile image

Hair SandwichTV

'Merca

really f..hard, but fun course!

(4/5)
Niklas Wesser profile image

Niklas Wesser

Sweden

Just the right amount of help! Great class!

(5/5)
D B profile image

D B

United States

Good but challenging though it it well worth the pain!!

(5/5)
GONNE ERNESTO profile image

GONNE ERNESTO

Kigali-Rwanda

Great, got stuck for a while with concurrency, still need time to internalize it. But that's how to get a little better I guess.

(5/5)
Shucheng Hu profile image

Shucheng Hu

Chongqing, China

or view more reviews

Mediocrity doesn't cut it anymore

The only way to become a great developer is to write a lot of code

Avoid tutorial hell

by writing a ton of code

Stay motivated with

a game-like curriculum

Build portfolio projects

to prove your skills

Delve deeper

into foundational concepts

Learn flexibly online

without interrupting your life

For 1% the price of college

to minimize your financial risk

Frequently asked Questions

Got questions? We've got answers

Yes! It's free to create an account and start learning. You'll get all the immersive and interactive features for free for a few chapters. After that, if you still haven't paid for a membership, you'll be in read-only (content only) mode.