How to collect IP addresses of Wikipedia edits

Processing aggregate results of geocoded IP addresses can provide valuable insights. This is very common for server logs and can also be used in many other situations. Many websites include the IP address of contributors of content. Wikipedia provides a history of changes on all of their pages. Edits created by someone that is not a registered user of Wikipedia have their IP address published in the history. We will examine how to create a scraper that will navigate the history of a given Wikipedia topic and collect the IP addresses of unregistered edits.

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.