Saturday, 19 September 2015

Genealogy: Anatomy of the ScanGed Python Script

The algorithm for scanning GED files is quite simple and it is based on recursion:

Start from a person in the family tree,
Collect the desired information about that person and print it to a a line.
Repeat for father, if found.
Repeat for mother, if found.

I've used dictionaries in Python, so that the script will know what line to look for a persons/familys section in the GED file. This will make the program much faster.

The source can be found on my public DropBox.


No comments:

Post a Comment