How to do it

The script for this example is in the 08/06_visualizze_wikipedia_links.py file. When run it produces a graph of the links found on the initial Python page in Wikipedia:

Graph of the links

Now we can see the relationships between the pages!

Get Python Web Scraping Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.