Skip to content

Instantly share code, notes, and snippets.

View mentat's full-sized avatar

Jesse Lovelace mentat

  • Austin, TX
View GitHub Profile
@mentat
mentat / microformats.py
Created March 11, 2012 23:12 — forked from k0001/microformats.py
Python microformats parser that supports hCard, hCalendar, hResume and rel-tag and provides an extensible model for other microformats.
# -*- coding: utf-8 -*-
#!/usr/bin/env python
"""
Model for microformat properties and parsers. A microformat parser can
parse an HTML element into a dictionary of properties, whose keys are
strings and whose values are strings or other dictionary of properties.
As an example, the main program of this script parses an hResume from
given URL.