{ "info": { "author": "Erik Rivera", "author_email": "erik.river@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: HTML" ], "description": "OpenGraph is a module of python for parsing the Open Graph Protocol, you can read more about the specification at http://ogp.me/\n\nInstallation\n=============\n\npip install ogp\n\nFeatures\n=============\n\n* Use it as a python dict\n* Input and parsing from a specific url\n* Input and parsung from html previous extracted\n* HTML output\n\nUsage\n==============\n\n**From an URL**\n\n>>> import ogp\n>>> video = ogp.OpenGraph(url=\"http://www.youtube.com/watch?v=q3ixBmDzylQ\")\n>>> video.is_valid()\nTrue\n>>> for x,y in video.items.items():\n... print \"%-15s => %s\" % (x, y)\n... \nsite_name => YouTube\ndescription => Eric Clapton and Paul McCartney perform George Harrison's \"While My Guitar Gently Weeps\" at the...\ntitle => While My Guitar Gently Weeps\nurl => http://www.youtube.com/watch?v=q3ixBmDzylQ\nimage => http://i2.ytimg.com/vi/q3ixBmDzylQ/default.jpg\nvideo:type => application/x-shockwave-flash\nvideo:height => 224\nvideo => http://www.youtube.com/v/q3ixBmDzylQ?version=3&autohide=1\nvideo:width => 398\ntype => video\n\n**From HTML**\n\n>>> HTML = \"\"\"\n... \n...
\n...