{ "info": { "author": "Lx Yu", "author_email": "i@lxyu.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development" ], "description": "Weibo\n=====\n\n.. image:: http://img.shields.io/pypi/v/weibo.svg?style=flat\n :target: https://pypi.python.org/pypi/weibo\n\n.. image:: http://img.shields.io/pypi/dm/weibo.svg?style=flat\n :target: https://pypi.python.org/pypi/weibo\n\n\n\u65b0\u6d6a\u5fae\u535a python SDK.\n\n\u4f7f\u7528 `requests` \u8fdb\u884c\u76f8\u5173\u7f51\u7edc\u64cd\u4f5c\uff0c\u56e0\u800c\u76f8\u5bf9\u4e8e\u5b98\u65b9\u7684 sdk\uff0c\u6781\u5927\u7684\u7b80\u5316\u4e86\u4ee3\u7801\uff0c\u5e76\u63d0\u9ad8\u4e86\u53ef\u8bfb\u6027\u3002\n\n\n\u5b89\u88c5\n----\n\n\u63a8\u8350\u4f7f\u7528 `pip` \u5b89\u88c5\u3002\n\n.. code:: bash\n\n $ pip install weibo\n\n\n\u4f7f\u7528\u8bf4\u660e\n--------\n\n\u51c6\u5907\u5de5\u4f5c\n~~~~~~~~\n\n- \u9996\u5148\uff0c\u6ce8\u518c\u4e00\u4e2a\u65b0\u6d6a\u5f00\u53d1\u8005\u5e10\u53f7\uff0c\u5e76\u5728 `\u65b0\u6d6a\u5f00\u53d1\u5e73\u53f0 `_ \u65b0\u5efa\u4e00\u4e2a app.\n\n- \u521b\u5efa\u597d\u5e94\u7528\u4e4b\u540e\u5728 '\u5e94\u7528\u4fe1\u606f -> '\u57fa\u672c\u4fe1\u606f' \u91cc\u9762\u83b7\u53d6 `App Key` \u548c `App Secret`.\n\n- \u5728 '\u5e94\u7528\u4fe1\u606f -> '\u9ad8\u7ea7\u4fe1\u606f' \u91cc\u9762\u8bbe\u7f6e\u597d '\u6388\u6743\u56de\u8c03\u9875'.\n\n\u793a\u4f8b\n~~~~\n\n\u4e0b\u9762\u5206\u522b\u7528 `API_KEY`, `API_SECRET`, `REDIRECT_URI` \u4ee3\u8868\u51c6\u5907\u5de5\u4f5c\u91cc\u9762\u7684\u4e09\u4e2a\u53c2\u6570\u3002\n\n\nToken \u8ba4\u8bc1\n\"\"\"\"\"\"\"\"\"\"\n\n.. code:: python\n\n >>> from weibo import Client\n >>> c = Client(API_KEY, API_SECRET, REDIRECT_URI)\n >>> c.authorize_url\n 'https://api.weibo.com/oauth2/authorize?redirect_uri=http%3A%2F%2F127.0.0.1%2Fcallback&client_id=123456'\n\n\u590d\u5236\u94fe\u63a5\u5230\u6d4f\u89c8\u5668\u6253\u5f00\uff0c\u83b7\u53d6 code.\n\n.. code:: python\n\n >>> c.set_code('abcdefghijklmn')\n\n\nclient \u521d\u59cb\u5316\u5b8c\u6210\u3002token \u53ef\u4ee5\u88ab\u4fdd\u5b58\u4e0b\u6765\u4f9b\u4e0b\u6b21\u8c03\u7528\u65f6\u76f4\u63a5\u4f7f\u7528\u3002\n\n.. code:: python\n\n >>> token = c.token\n >>> c2 = Client(API_KEY, API_SECRET, REDIRECT_URI, token)\n >>> c2.get('users/show', uid=2703275934)\n\n\u5e10\u53f7\u8ba4\u8bc1\n\"\"\"\"\"\"\"\"\n\n\u9664\u4e86\u4f7f\u7528 token \u8ba4\u8bc1\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528 username / password \u8fdb\u884c\u8ba4\u8bc1\u3002\n\n.. code:: python\n\n >>> from weibo import Client\n >>> c = Client(API_KEY, API_SECRET, REDIRECT_URI, username='admin', password='secret')\n >>> c.get('users/show', uid=1282440983)\n\n\u63a5\u53e3\u8c03\u7528\n\"\"\"\"\"\"\"\"\n\n\u53c2\u8003 `\u5fae\u535a\u5f00\u53d1\u6587\u6863 `_ \u8fdb\u884c\u63a5\u53e3\u8c03\u7528\u3002\n\n.. code:: python\n\n >>> c.get('users/show', uid=1282440983)\n >>> c.post('statuses/update', status='python sdk test, check out http://lxyu.github.io/weibo/')\n\nclient \u517c\u5bb9\u4e0a\u4f20\u56fe\u7247\u63a5\u53e3\u3002\n\n.. code:: python\n\n >>> f = open('avatar.png', 'rb')\n >>> c.post('statuses/upload', status='new avatar!', pic=f)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://lxyu.github.io/weibo/", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "weibo", "package_url": "https://pypi.org/project/weibo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/weibo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://lxyu.github.io/weibo/" }, "release_url": "https://pypi.org/project/weibo/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "Python sina weibo sdk", "version": "0.2.2" }, "last_serial": 1212627, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "58b04e1664f119bc56213bb79c5c47fa", "sha256": "9c631191765f58f8e60034e86213dcf3c59389a8af78d51fb381b17ce5a1247e" }, "downloads": -1, "filename": "weibo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "58b04e1664f119bc56213bb79c5c47fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2885, "upload_time": "2012-09-08T14:41:06", "url": "https://files.pythonhosted.org/packages/d6/4b/4fb6cacc0030fdd923a3ea9e73abd20787ae5f422b2c53d72efd257eb6d4/weibo-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "60ba64c4c10837a817b6d248371dd532", "sha256": "fca439b0efc59df962dcee6d4bf85731b5e7a834b201764a2c1a30dc7f26b716" }, "downloads": -1, "filename": "weibo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "60ba64c4c10837a817b6d248371dd532", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2909, "upload_time": "2012-09-08T14:49:33", "url": "https://files.pythonhosted.org/packages/16/fd/380568e703dc114c91d238da762f59ca2f27e149af706be4dbb7f7e099f8/weibo-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "9215357c66fd91612f12f34306ee895a", "sha256": "4b151384305ad5a116ef80222cada7fd0be30596d9f5cb8d687dfee8ea354f50" }, "downloads": -1, "filename": "weibo-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9215357c66fd91612f12f34306ee895a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2956, "upload_time": "2012-09-08T15:53:10", "url": "https://files.pythonhosted.org/packages/90/d9/4f5a3a18b47667ea080524be96843585b2aba3c0eb3560aa01b5ed6368cf/weibo-0.1.2.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "d33728c86d2c51fc647d774f0a4bceb8", "sha256": "2ec8538b9f80bfeaaa5e54fb3bb15687d8ea8fb285e718298460ba30aa60e1de" }, "downloads": -1, "filename": "weibo-0.1.4.tar.gz", "has_sig": false, "md5_digest": "d33728c86d2c51fc647d774f0a4bceb8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3114, "upload_time": "2012-10-23T13:20:45", "url": "https://files.pythonhosted.org/packages/89/6b/5d52845a4818a5daac6a0072d2d8fdf005bab2957619253f4fcfe1556fbd/weibo-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "e625312daa946e3be9ffe44a9271de80", "sha256": "1930c1c972554d93d69923fbd12d236f53044a55d92616b228a86cd2a14d05e4" }, "downloads": -1, "filename": "weibo-0.1.5.tar.gz", "has_sig": false, "md5_digest": "e625312daa946e3be9ffe44a9271de80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3140, "upload_time": "2012-10-23T13:59:49", "url": "https://files.pythonhosted.org/packages/b5/15/e8ae7c1fe4445c7cb091eb7ec59a358fad05cdac48e8972b0203d7219d2e/weibo-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "697625ee9aa88473f14e4e7f81590f12", "sha256": "fb342c9fd0f14e415800c38d9d8a391af6ed44a99e9e542b629b14dc6b0788e0" }, "downloads": -1, "filename": "weibo-0.1.6.tar.gz", "has_sig": false, "md5_digest": "697625ee9aa88473f14e4e7f81590f12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3148, "upload_time": "2012-11-16T13:05:01", "url": "https://files.pythonhosted.org/packages/cc/81/7a2f6a5af25ee67c4c5662872274c5a1bec4cf15c396590e284443b46f8a/weibo-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "aa48f6f477fd3f14446593ce241ef6dd", "sha256": "8631f275c1341f18aa4e3601474bc4d3345ff30157b7c1586eea310b67b28f69" }, "downloads": -1, "filename": "weibo-0.1.7.tar.gz", "has_sig": false, "md5_digest": "aa48f6f477fd3f14446593ce241ef6dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3136, "upload_time": "2013-01-07T12:30:32", "url": "https://files.pythonhosted.org/packages/7f/bb/778dede4be44b6f036d42956a4c2558e370069457dab517ce55aa73373de/weibo-0.1.7.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "b5eceda764f548a3274b772575cfffd7", "sha256": "6881091c0ae00c7054908c392c478c18f7d4e9d99947d03ad059ef172706b985" }, "downloads": -1, "filename": "weibo-0.2.0.tar.gz", "has_sig": false, "md5_digest": "b5eceda764f548a3274b772575cfffd7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3335, "upload_time": "2013-05-11T13:41:52", "url": "https://files.pythonhosted.org/packages/84/72/bab923e8496d5cb374163374f73697e94ffd76c5971a43469048034e47a0/weibo-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "fa938638496ac89acb530c21d023b0d4", "sha256": "d5a472f94229e24a39a6d544ec1509bd96a05a9b8afc4832311b95853f44a3cd" }, "downloads": -1, "filename": "weibo-0.2.1.tar.gz", "has_sig": false, "md5_digest": "fa938638496ac89acb530c21d023b0d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3175, "upload_time": "2014-07-14T09:14:51", "url": "https://files.pythonhosted.org/packages/1b/99/0157ceff133af92363a4edfbe0afacb35adf3f7fe5ecfa84dcf0333ab9e0/weibo-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "062344929f397d8750273df98347b394", "sha256": "3f44367192dce0490b385ab2f7c49399f138d3d11621f294f2fd63b1486b0270" }, "downloads": -1, "filename": "weibo-0.2.2.tar.gz", "has_sig": false, "md5_digest": "062344929f397d8750273df98347b394", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3623, "upload_time": "2014-09-04T09:38:21", "url": "https://files.pythonhosted.org/packages/55/37/63359f39566e8444c0b037248a8707c6a070239c68d7fd30b94731136e88/weibo-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "062344929f397d8750273df98347b394", "sha256": "3f44367192dce0490b385ab2f7c49399f138d3d11621f294f2fd63b1486b0270" }, "downloads": -1, "filename": "weibo-0.2.2.tar.gz", "has_sig": false, "md5_digest": "062344929f397d8750273df98347b394", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3623, "upload_time": "2014-09-04T09:38:21", "url": "https://files.pythonhosted.org/packages/55/37/63359f39566e8444c0b037248a8707c6a070239c68d7fd30b94731136e88/weibo-0.2.2.tar.gz" } ] }