{ "info": { "author": "plasmashadow", "author_email": "plasmashadowx@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 2" ], "description": "##StackExchange\n\n[![Build Status](https://travis-ci.org/plasmashadow/stackexchange.svg?branch=master)](https://travis-ci.org/plasmashadow/stackexchange)\n[![PyPI version](https://badge.fury.io/py/stackexchange.svg)](http://badge.fury.io/py/stackexchange)\n[![PyPI](https://img.shields.io/pypi/dm/stackexchange.svg)](https://pypi.python.org/pypi/stackexchange)\n\n##Description\nA Friendly wrapper for stackexchange public api used to harvest information about Questions, Answers\nand even search for questions.\n\n##Installation:\n\nyou can install stackexchange from its official pypi repository.\n\n```python\n pip install stackexchange\n \n```\n\n##Usage\n\n###searching\n\nWe can use the stackexchange search api to search in various titles\n\n```python\n\nfrom stackexchange import search\n\ng = search(\"python\", site=\"stackoverflow\", order=\"desc\")\n\nfor item in g:\n\tprint item.title\n\t# will help you to see all properties it contains\n\tprint dir(item)\n\n```\n\n### answers\n\nLet's look at the answer api now.\n\n```python\n\nfrom stackexchange import Answer\n\na = Answer()\ng = a.get_all_answer(site=\"stackoverflow\", order=\"desc\", page=1)\n\nfor item in g:\n answer_id = item.answer_id\n ans = a.get_by_id(answer_id)\n comments = a.get_comments(answer_id)\n print comments\n```\n\n###questions\n\nOn Questions api\n\n```python\n\nfrom stackexchange import Question\n\nq = Question()\n\ng = q.get_all_questions(site=\"stackoverflow\", order=\"desc\")\n\nfor item in g:\n question_id = item.question_id\n ques = q.get_by_id(question_id)\n \n #for getting unanswered questions\n\ng = q.get_unanswered()\n \n #for getting featured questions\n\ng = q.get_featured()\n \n```\n\n\n##License\n\n

MIT

", "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/plasmashadow/stackexchange.git", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "stackexchange", "package_url": "https://pypi.org/project/stackexchange/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/stackexchange/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/plasmashadow/stackexchange.git" }, "release_url": "https://pypi.org/project/stackexchange/0.5.0/", "requires_dist": null, "requires_python": null, "summary": "Stackexchange API for Python", "version": "0.5.0" }, "last_serial": 1619852, "releases": { "0.0.1": [], "0.0.2": [ { "comment_text": "", "digests": { "md5": "2f862ac3ae1411eeb60b30720f63d5da", "sha256": "57d788cf7706ff5df0f26f593b40ca1966b75e34791868cb70d5a640b78f67e2" }, "downloads": -1, "filename": "stackexchange-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2f862ac3ae1411eeb60b30720f63d5da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1974, "upload_time": "2015-07-05T03:43:44", "url": "https://files.pythonhosted.org/packages/54/47/0429ce7a1671c1e3b240b2a7045f1a250b31bb6673ccf41354752ba4ba81/stackexchange-0.0.2.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "1e05d8b969c64c0cd70e0f8b5848c8aa", "sha256": "ef38574485cf807a729dfe14571249a38e2378c35121d06f09b9eb891d57f2aa" }, "downloads": -1, "filename": "stackexchange-0.5.0.tar.gz", "has_sig": false, "md5_digest": "1e05d8b969c64c0cd70e0f8b5848c8aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3699, "upload_time": "2015-07-05T08:02:48", "url": "https://files.pythonhosted.org/packages/ef/61/9797c7b1bae882a2265fe7fcdd98ba358e34fb66ba2809e3addb5d286248/stackexchange-0.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1e05d8b969c64c0cd70e0f8b5848c8aa", "sha256": "ef38574485cf807a729dfe14571249a38e2378c35121d06f09b9eb891d57f2aa" }, "downloads": -1, "filename": "stackexchange-0.5.0.tar.gz", "has_sig": false, "md5_digest": "1e05d8b969c64c0cd70e0f8b5848c8aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3699, "upload_time": "2015-07-05T08:02:48", "url": "https://files.pythonhosted.org/packages/ef/61/9797c7b1bae882a2265fe7fcdd98ba358e34fb66ba2809e3addb5d286248/stackexchange-0.5.0.tar.gz" } ] }