hentry
Parse a well designed webpage with microformats markup. If you have no knowledge about microformats, take a look at http://microformats.org/wiki/hentry.
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>
<div class="entry-tags">
<a href="#tag1" rel="tag">tag1</a>
<a href="#tag2" rel="tag">tag2</a>
</div>
<div class="vcard author">
<span class="fn">Author Name</span>
</div>
</article>
With this library hentry.py, you can parse the html into meta data:
hentry.parse_html(text, format='html')
Installation
Install hentry with pip:
$ pip install hentry
Basic Usage
Parse a webpage with a url:
hentry.parse_url(url)
Parse a webpage with html content:
hentry.parse_html(content)
The result is a dict which contains:
title
content
author
pubdate
tags
categories
image
Metadata
Release files for hentry 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hentry-0.1.tar.gz | 3.5 kB | Without provenance | Details for hentry-0.1.tar.gz |
Release files / hentry-0.1.tar.gz
| Download URL | hentry-0.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d433180f01b66966f556d8f01aef38fb2655c59f7462f29ee103043eea6b43a
|
|
BLAKE2b-256 checksum How to use checksums |
afb96ab464dd1abf3b511598ac5bd0d28254c23bf2ec07a58aba0600e689f2e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for hentry 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.