microdataPython library for working with HTML5 microdata | |
Download |
microdata Ranking & Summary
Advertisement
- License:
- Public Domain
- Publisher Name:
- Ed Summers
- Publisher web site:
- http://search.cpan.org/~esummers/Bundle-MyLibrary-0.05/lib/Bundle/MyLibrary.pm
microdata Tags
microdata Description
Python library for working with HTML5 microdata microdata is a small Python library for extracting HTML5 Microdata from HTML. It depends on html5lib to do the heavy lifting of building the DOM. For more about HTML5 Microdata check out Mark Pilgrim's chapter on on it in Dive Into HTML5.Here's the basic usage using https://raw.github.com/edsu/microdata/master/example.html as an example:>>> import microdata>>> items = microdata.parse("example.html")>>> item = items>>> item.itemtypeu"http://schema.org/Person">>> item.nameu"Jane Doe">>> item.colleaguesu"http://www.xyz.edu/students/alicejones.html">>> item.get_all('colleagues') Requirements: · Python
microdata Related Software