{ "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 opengraph\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>>> import opengraph\n>>> video = opengraph.OpenGraph(url=\"http://www.youtube.com/watch?v=q3ixBmDzylQ\")\n>>> video.is_valid()\nTrue\n>>> for x,y in video.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... The Rock (1996)\n... \n... \n... \n... \n... \n... \n... \"\"\"\n>>> movie = opengraph.OpenGraph() # or you can instantiate as follows: opengraph.OpenGraph(html=HTML)\n>>> movie.parser(HTML)\n>>> video.is_valid()\nTrue\n\n**Generate JSON or HTML**\n\n>>> \n>>>\n>>>", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/erikriver/opengraph", "keywords": "opengraph protocol facebook", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "opengraph", "package_url": "https://pypi.org/project/opengraph/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/opengraph/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/erikriver/opengraph" }, "release_url": "https://pypi.org/project/opengraph/0.5/", "requires_dist": null, "requires_python": null, "summary": "A module to parse the Open Graph Protocol", "version": "0.5" }, "last_serial": 795777, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "43860e13a56bfaaa0d8c5e13d29de453", "sha256": "76f68dce38c8ab2315ff2409b13ea8fc06d7e639e597e2a84fa2f9a84db091db" }, "downloads": -1, "filename": "opengraph-0.3.tar.gz", "has_sig": false, "md5_digest": "43860e13a56bfaaa0d8c5e13d29de453", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3242, "upload_time": "2011-06-18T01:24:08", "url": "https://files.pythonhosted.org/packages/4e/fb/88093a72725701fc8dd9cefaf7b30e918c2e887dcad416c912c938b8dee7/opengraph-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "624639b769371263a0cb546b8301b6f2", "sha256": "9ba749eec9d26356f2e7ae5230e4ed17f822667964a0ef7594b77ca38d6ac4e1" }, "downloads": -1, "filename": "opengraph-0.4.tar.gz", "has_sig": false, "md5_digest": "624639b769371263a0cb546b8301b6f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3361, "upload_time": "2011-06-21T09:19:37", "url": "https://files.pythonhosted.org/packages/51/e8/69454e15a39c1f1b92b0dd32c40ea0039c8beda3f9bb8a0f19dc7eab6453/opengraph-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "feb0e123edc351ff8c22bf8e73cadf30", "sha256": "5739e3d67eb93d0002dd64aefd850e49ddd96ddaee39a77dc39aeb869fd5969d" }, "downloads": -1, "filename": "opengraph-0.5.tar.gz", "has_sig": false, "md5_digest": "feb0e123edc351ff8c22bf8e73cadf30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3632, "upload_time": "2012-05-25T23:25:52", "url": "https://files.pythonhosted.org/packages/ec/3c/895f832fc6158fa9c6f285b4a35e0774e48f0feb49812b3f8b12f87925a1/opengraph-0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "feb0e123edc351ff8c22bf8e73cadf30", "sha256": "5739e3d67eb93d0002dd64aefd850e49ddd96ddaee39a77dc39aeb869fd5969d" }, "downloads": -1, "filename": "opengraph-0.5.tar.gz", "has_sig": false, "md5_digest": "feb0e123edc351ff8c22bf8e73cadf30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3632, "upload_time": "2012-05-25T23:25:52", "url": "https://files.pythonhosted.org/packages/ec/3c/895f832fc6158fa9c6f285b4a35e0774e48f0feb49812b3f8b12f87925a1/opengraph-0.5.tar.gz" } ] }