{ "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\nNote : This repository has only porting related changes and was basically created to make these changes available on PyPi.\n\nInstallation\n=============\n\n.. code-block:: console\n\n $ pip install opengraph-py3.6\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* JSON output\n\nUsage\n==============\n\n**From an URL**\n\n.. code-block:: pycon\n\n >>> import opengraph\n >>> video = opengraph.OpenGraph(url=\"http://www.youtube.com/watch?v=q3ixBmDzylQ\")\n >>> video.is_valid()\n True\n >>> for x,y in video.items():\n ... print \"%-15s => %s\" % (x, y)\n ...\n site_name => YouTube\n description => Eric Clapton and Paul McCartney perform George Harrison's \"While My Guitar Gently Weeps\" at the...\n title => While My Guitar Gently Weeps\n url => http://www.youtube.com/watch?v=q3ixBmDzylQ\n image => http://i2.ytimg.com/vi/q3ixBmDzylQ/default.jpg\n video:type => application/x-shockwave-flash\n video:height => 224\n video => http://www.youtube.com/v/q3ixBmDzylQ?version=3&autohide=1\n video:width => 398\n type => video\n\n**From HTML**\n\n.. code-block:: pycon\n\n >>> HTML = \"\"\"\n ... \n ...
\n ...