Coder Social home page Coder Social logo

wikitree-microdata's Introduction

wikitree-api

This library provides access to WikiTree genealogical data. It uses the microdata embedded in WikiTree's public pages.

Prerequisites

  • Python 3.0 or higher
  • The microdata library.

Installation

There are a few different ways you can get the wikitree-api library:

  • Download the zipfile with the latest code.
  • Checkout the source: git clone git://github.com/jeroenl/wikitree-api.

Install by extracting and running python setup.py in the source directory.

Usage

To retrieve data, use the classes in the wikitree.public package. Each requires an identifier or full URL to be passed when creating the object. For example:

# Pass an identifier or full URL
p = Person('Sloan-518')
p2 = Person('http://www.wikitree.com/wiki/Carvell-50')

# The data for this person is only retrieved when first accessing any of its properties.
p.name
# 'Clayton Sloan'

# Any references to other persons are returned as Person objects, which makes it easy to retrieve additional details.
p.children[0].birthDate
# '1922-05-07'

wikitree-microdata's People

Contributors

jeroenl avatar

Stargazers

Andrew Sielen avatar  avatar

Watchers

 avatar James Cloos 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.