A crawler starts at one page, finds the links on it, and follows them, page after page. Most of its time is spent waiting for the network, which is exactly the kind of work that threads speed up. This project builds a crawler that visits a small site, served from your own machine, with a pool of threads, a set of pages already seen, a limit, and the rules that every polite crawler follows: stay on one site, and never visit a page twice.
More lessons in Complete Python Programming