{ "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... The Rock (1996)\n... \n... \n... \n... \n... \n... \n... \"\"\"\n>>> movie = ogp.OpenGraph() # or you can instantiate as follows: opengraph.OpenGraph(html=HTML)\n>>> movie.parser(HTML)\n>>> video.is_valid()\nTrue", "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/graingert/opengraph", "keywords": "opengraph protocol facebook", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "ogp", "package_url": "https://pypi.org/project/ogp/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ogp/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/graingert/opengraph" }, "release_url": "https://pypi.org/project/ogp/0.9.1/", "requires_dist": null, "requires_python": null, "summary": "A module to parse the Open Graph Protocol", "version": "0.9.1" }, "last_serial": 795692, "releases": { "0.8": [ { "comment_text": "", "digests": { "md5": "2b9c757b236ee0c26107a0d85bc573f9", "sha256": "0985ccbbcfac56c6c44a44c22609116ffdf8e2a43d794eecc94a23bb2faf9d67" }, "downloads": -1, "filename": "ogp-0.8.tar.gz", "has_sig": false, "md5_digest": "2b9c757b236ee0c26107a0d85bc573f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3267, "upload_time": "2012-07-31T16:38:30", "url": "https://files.pythonhosted.org/packages/d1/66/77bc2660620136c0f9d6498be95c298130952bc6ba7f20528c1487d22c1c/ogp-0.8.tar.gz" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "45b438574bf15957b0ebb32a98c3c7a4", "sha256": "866b86071165a93a2309a86c855c58d39c2291d12389bfb1c23e980be449c95a" }, "downloads": -1, "filename": "ogp-0.9.tar.gz", "has_sig": false, "md5_digest": "45b438574bf15957b0ebb32a98c3c7a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3389, "upload_time": "2012-07-31T18:09:48", "url": "https://files.pythonhosted.org/packages/d6/d0/0e3c88edd447bc164fcb79dceaa020795a586f1cf01c1ffa8ba0b7ae3e4f/ogp-0.9.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "35bb8f9a13450d950bc98e792e67a273", "sha256": "76d9a7ef7868903e38920ac75ea5dedcafcbdd07d4965a9c874eff43f51db8fa" }, "downloads": -1, "filename": "ogp-0.9.1.tar.gz", "has_sig": false, "md5_digest": "35bb8f9a13450d950bc98e792e67a273", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3323, "upload_time": "2012-08-01T17:29:37", "url": "https://files.pythonhosted.org/packages/29/c5/def190857cacb5cf4b8d216dfbfaa5be2644428d1063aaf329a07dd5c995/ogp-0.9.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "35bb8f9a13450d950bc98e792e67a273", "sha256": "76d9a7ef7868903e38920ac75ea5dedcafcbdd07d4965a9c874eff43f51db8fa" }, "downloads": -1, "filename": "ogp-0.9.1.tar.gz", "has_sig": false, "md5_digest": "35bb8f9a13450d950bc98e792e67a273", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3323, "upload_time": "2012-08-01T17:29:37", "url": "https://files.pythonhosted.org/packages/29/c5/def190857cacb5cf4b8d216dfbfaa5be2644428d1063aaf329a07dd5c995/ogp-0.9.1.tar.gz" } ] }