Skip to main content

ExtendedOpenGraphParser is a python module for parsing the Open Graph Protocol.

Open Graph Protocol spec: http://ogp.me/

Installation

pip install ExtendedOpenGraph

Features

  • Based on opengraph.

  • If not exist Open Graph properties in meta tag, it is able to parse basic Metadata.

  • Input URL and HTML.

  • Output python dictionary.

  • Like Facebook.

Usage

input : url

>>> import ExtendedOpenGraph
>>> data = ExtendedOpenGraph.parse(url="http://www.twitter.com")
>>> for key, value in data.items():
...     print "%-15s => %s" % (key, value)
...
url             => http://www.twitter.com
image           => https://abs.twimg.com/a/1373572090/t1/img/front_page/jp-mountain@2x.jpg
type            => website
title           => 트위터

input : html

>>> ex_html="<html><head><title>ExtendOpenGraph</title></head><body><img src='logo.png'/></body></html>"
>>> data = ExtendedOpenGraph.parse(html=ex_html)
>>> for key, value in data.items():
...     print "%-15s => %s" % (key, value)
...
url             => None
image           => logo.png
type            => website
title           => ExtendOpenGraph

Metadata

Release files for ExtendedOpenGraph 0.3

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

Source distribution (sdist)

Source distribution for ExtendedOpenGraph 0.3
File Size Uploaded Provenance
ExtendedOpenGraph-0.3.tar.gz 3.8 kB Without provenance Details

Release files / ExtendedOpenGraph-0.3.tar.gz

Download URL ExtendedOpenGraph-0.3.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7bfb1650a29db154832dc59f816e2404131a9586360a5b0ec18366048ff06b2b
BLAKE2b-256 checksum
How to use checksums
ed449ada67a91d79be491f39996b2a9365e4ff2e863b33ae8046750155734b1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ExtendedOpenGraph 0.3

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.

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file No provenance

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