A simple Python script for crawling the Mathematics Genealogy Project:
http://genealogy.math.ndsu.nodak.edu/
Invoke it with an id of a mathematician as an argument and it will print out the complete genealogy tree of the desired mathematician.
Example: mathgen.py 108295
Output: Pierre-Simon Laplace (a student of Jean Le Rond d'Alembert)