Skip to main content

HTMLmetadata

Extract metadata from html pages using Open Graph metadata, HTML metadata, and a series of fallbacks

Inspired in https://metascraper.js.org

Install

pip install htmlmetadata

Use

You can use it by calling the module directly.

python -m htmlmetadata http://schema.org/docs/about.html                                                                            
{
  "request": {
    "url": "http://schema.org/docs/about.html"
  },
  "summary": {
    "description": "Schema.org is a set of extensible schemas that enables webmasters to embed\n    structured data on their web pages for use by search engines and other applications.",
    "title": "about page - schema.org",
    "language": "en"
  }
}

Or use it directly in your code.

from htmlmetadata import extract_metadata

data = extract_metadata("http://schema.org/docs/about.html")

Metadata

Release files for htmlmetadata 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for htmlmetadata 1.1
File Size Uploaded
htmlmetadata-1.1.zip 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for htmlmetadata 1.1
File Interpreter ABI Platform
htmlmetadata-1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 13.8 kB

Release files / htmlmetadata-1.1.zip

Download URL htmlmetadata-1.1.zip
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
153e82b57392d62b57cb687ef45f7f99fd5d2e3705c8412db723945e281efd16
BLAKE2b-256 checksum
How to use checksums
f33602dd088e3aee77b8a85d8e7aeaf7e9cb8a7ca963d6e51e85d6035a698a48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0

Release files / htmlmetadata-1.1-py2.py3-none-any.whl

Download URL htmlmetadata-1.1-py2.py3-none-any.whl
Size 5.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
004d36c78fd27366b7ee97943d7293d54dd51a9f16efbbb6163c6d1b25619635
BLAKE2b-256 checksum
How to use checksums
ebd0e4077f28c0af6c47ce8d3411bdd252521311f2804ed9a99bdd3648fd45a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page