Skip to main content

Parse hentry from microformats.

Project description

Parse a well designed webpage with microformats markup. If you have no knowledge about microformats, take a look at

A hentry schema looks like:

<article class="hentry">
    <h1 class="entry-title">Article title</h1>
    <time class="updated" datetime="2014-11-06T20:00:00Z" pubdate>2014-11-06</time>
    <div class="entry-content">
        <p>Here is the content</p>
    <div class="entry-tags">
        <a href="#tag1" rel="tag">tag1</a>
        <a href="#tag2" rel="tag">tag2</a>
    <div class="vcard author">
        <span class="fn">Author Name</span>

With this library, you can parse the html into meta data:

hentry.parse_html(text, format='html')


Install hentry with pip:

$ pip install hentry

Basic Usage

Parse a webpage with a url:


Parse a webpage with html content:


The result is a dict which contains:

  1. title
  2. content
  3. author
  4. pubdate
  5. tags
  6. categories
  7. image

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hentry, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size hentry-0.1.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page