PyOpenGraph is a library written in Python for parsing Open Graph protocol information from web sites.
Project description
PyOpenGraph is a library written in Python for parsing Open Graph protocol information from web sites.
Learn more about the protocol at:
Installation
To install, download the archive at http://pypi.python.org/pypi/PyOpenGraph and decompress, run python setup.py install.
Usage
import PyOpenGraph og = PyOpenGraph('http://www.rottentomatoes.com/m/10011268-oceans/') print og.metadata # => {'url': 'http://www.rottentomatoes.com/m/10011268-oceans/', 'site_name': 'Rotten Tomatoes', 'image': 'http://images.rottentomatoes.com/images/movie/custom/68/10011268.jpg', 'type': 'movie', 'title': 'Oceans'} print og.metadata['title'] # => Oceans og.is_valid() # => return True or False
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
PyOpenGraph-0.2.zip
(4.5 kB
view details)
PyOpenGraph-0.2.tar.gz
(2.8 kB
view details)
File details
Details for the file PyOpenGraph-0.2.zip
.
File metadata
- Download URL: PyOpenGraph-0.2.zip
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
90e6935128804bb7139611964bf22793f8fd10e7733fedb31d0ca466e8bb0f89
|
|
MD5 |
aa72163aba77339d6f69f7762668b5a9
|
|
BLAKE2b-256 |
d512bcb4668bc39e8f38af36d7d808682c7bc0b8b534e25372288cc67610ae6c
|
File details
Details for the file PyOpenGraph-0.2.tar.gz
.
File metadata
- Download URL: PyOpenGraph-0.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
630b543f0ad7e322db2798e0709b0c97c648db73301edbd7ddd4796e3c982d20
|
|
MD5 |
d4980018d799f5c31be753677fe0dd58
|
|
BLAKE2b-256 |
621439de9ffd91b181493e3fe0527dc5b2039ff91d591cb0ecb4d9fc8286dd71
|