Code Monkey home page Code Monkey logo

familytreescanner's Introduction

Reads in an ancestry.com family tree and builds a python representation of it. Once the tree is converted to a FamilyTree object, it can be scanned for common errors and saved in json format.

Recently, I also added in the ability to put all the information in the tree into a pandas dataframe. There are two functions for this, one with basic information stored in the tree and one with information for mapping birth places in FamilyPaths.ipynb. Mapping requires a google maps geocoder api key and pixiedust.

In my implementation, people are represented as dictionaries and then accessed from the main dictionary with the ID ancestry assigns them. Relationships to other people in the tree are represented as lists of ID numbers like an adjancency list. The family tree is assumed to be a connected graph and traversal requires the ID of a root person to start from, although it doesn't really matter which person this is since traversal goes in all directions when direct_ancestors_only is turned off.

To run, a file named private.py is required with the variables username, password, and root_person_link to be set to the username and password for an ancestry.com account and the url for the "Facts" page of a person the account has permission to view. Google_api_key must also be set in order to use the map_dataframe method.

With my tree of over 1600 people, building the tree takes a little while but scanning is almost instant.

familytreescanner's People

Contributors

ewells1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.