This repository contains Python notebooks and scripts related to my edits of Nigerian-related articles on Wikipedia. I am especially proud of this spreadsheet compiling all Nigerian assemblymembers from the countries' independence.
archive.ipynb- Notebook transforming an archived version of Nigeria Congress Online into a CSV file. This file can be turned into a table in Wikipedia for List of members of the House of Representatives of Nigeria, 1999-2003.glue.ipynb- Notebook to assemble each House and Senate term into one large spreadsheet.main.ipynb- Notebook testing OpenCV and PyTesseract functionalities.main.py- Python script to take scans of Nigeria Legislature 1861-2011: A Compendium of Members & Officials into CSV files.merge.ipynb- Notebook to help merging information in the CSV files generated bymain.pyinto the tables already created on Wikipedia.
To run main.py, use these commands to set up environment:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Change the DIR_NAME to the folder with scans you want to start creating spreadsheets.
Run the main Python file to start creating the spreadsheets:
python ./src/main.py