Utility for parsing the OpenGraph tags
Project description
Opengrapher
utility for parsing the Open Graph tags from url
(read more about the specification at http://ogp.me/)
Installation
$ pip install opengrapher
Usage
>>> import opengrapher
>>> opengrapher.parse('https://www.imdb.com/title/tt0110912')
{
"url": "https://www.imdb.com/title/tt0110912",
"title": "Pulp Fiction (1994) - IMDb",
"type": "video.movie",
"image": "https://m.media-amazon.com/images/M/MV5BNGNhMDIzZTUtNTBlZi00MTRlLWFjM2ItYzViMjE3YzI5MjljXkEyXkFqcGdeQXVyNzkwMjQ5NzM@._V1_UY1200_CR97,0,630,1200_AL_.jpg",
"description": """
Directed by Quentin Tarantino. With John Travolta, Uma Thurman,
Samuel L. Jackson, Bruce Willis. The lives of two mob hitmen,
a boxer, a gangster and his wife, and a pair of diner bandits
intertwine in four tales of violence and redemption.
""",
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for opengrapher-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 432b14dff757707f68f8d82f9fdba3d230ff4e58106d2b2bc7ddc88fda160aa0 |
|
MD5 | f0a4638f248270fe935ffb70f9f4d27f |
|
BLAKE2b-256 | 76f9276d6195a65f6826d04c7cb3adc1d46218b5bb72d09292ee1b8158ae1ae8 |