Trace one's academic genealogy by crawling a dataset of academic advisors and students. It fetches data from j2kun/math-genealogy-scraper and recursively finds all academic ancestors for the specified individuals.
- Fetches academic genealogy data from a public dataset.
- Traces academic ancestors for given starting individuals.
- Goes back many generations (configurable, defaults to 40).
- Outputs a sorted list of ancestors with their generational distance.
-
Install requirements
This script requires Python 3 and therequestslibrary.
Install dependencies with:pip install requests
-
Configure ancestors
Edit themyancestors.pyfile to set starting ancestor IDs in themy_ancestorsdictionary.
You can find someone's ID by searching them on the Mathematics Genealogy Project website. -
Run the script
Execute the script with:python myancestors.py
Guido Sciavicco (1)
Angelo Montanari (2)
Alberto Policriti (2)
...
This project uses data from the Mathematics Genealogy Project website, scraped and provided in JSON format by j2kun/math-genealogy-scraper.