Wikipedia Table Scraper by Bijaya Kumar TamangWikipedia Table Scraper by Bijaya Kumar Tamang

Wikipedia Table Scraper

Bijaya Kumar Tamang

Bijaya Kumar Tamang

Wikipedia Table Scraper

A Python script to extract and clean data tables from Wikipedia pages. This example scrapes "Countries by GDP" data, but can be adapted for any Wikipedia table.

Features

Extracts structured table data from Wikipedia pages
Cleans data by removing citations and special characters
Outputs to CSV for easy analysis
Flexible to work with any Wikipedia table
Lightweight with only 3 dependencies

Requirements

Python 3.6+
BeautifulSoup4
pandas
requests
Like this project

Posted Sep 16, 2025

Python script to extract and clean Wikipedia tables.