PyOpenGraph 0.2
PyOpenGraph is a library written in Python for parsing Open Graph protocol information from web sites.
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
| File | Type | Py Version | Uploaded on | Size | |
|---|---|---|---|---|---|
| PyOpenGraph-0.2.tar.gz (md5) | Source | 2010-05-08 | 2KB | ||
| PyOpenGraph-0.2.zip (md5) | Source | 2010-05-08 | 4KB | ||
- Author: Gerson Minichiello
- Home Page: http://github.com/minichiello/PyOpenGraph
- Download URL: http://pypi.python.org/pypi/PyOpenGraph
- License: MIT License
- Platform: Any
- Categories
- Package Index Owner: minichiello
- DOAP record: PyOpenGraph-0.2.xml
