# StackoverflowReader (In Beta)
Using the Stackoverflow API, this class will read the Stackoverflow Teams API and return a list of questions and answers based on posts.
It also supports caching the results to a local directory, so that you can run the load_data() method multiple times without hitting the API.
## getting a token
Visit: https://stackoverflowteams.com/users/pats/
1. Click Create a new PAT
2. Name the token, and pick the team scope
3. Select an expiration date
4. Click Create
Add this to your env, or to the instantiation of the `StackoverflowReader(pa_token, team_name, cache_dir='./stackoverflow_cache')`
```bash
export STACKOVERFLOW_PAT=your_token
export STACKOVERFLOW_TEAM_NAME=your_team
```
Other features which could be added:
- Add articles
- Add comments
- Add tags
- Add users
- Add votes
- Add badges
Raw data
{
"_id": null,
"home_page": "",
"name": "llama-index-readers-stackoverflow",
"maintainer": "allen-munsch",
"docs_url": null,
"requires_python": ">=3.8.1,<4.0",
"maintainer_email": "",
"keywords": "answers,posts,questions",
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/b3/a7/d845e4e3955137fc1faf18aeaf45b42c36aa7ff23f11a9bc05da5bc3a5ef/llama_index_readers_stackoverflow-0.1.3.tar.gz",
"platform": null,
"description": "# StackoverflowReader (In Beta)\n\nUsing the Stackoverflow API, this class will read the Stackoverflow Teams API and return a list of questions and answers based on posts.\n\nIt also supports caching the results to a local directory, so that you can run the load_data() method multiple times without hitting the API.\n\n## getting a token\n\nVisit: https://stackoverflowteams.com/users/pats/\n\n1. Click Create a new PAT\n2. Name the token, and pick the team scope\n3. Select an expiration date\n4. Click Create\n\nAdd this to your env, or to the instantiation of the `StackoverflowReader(pa_token, team_name, cache_dir='./stackoverflow_cache')`\n\n```bash\nexport STACKOVERFLOW_PAT=your_token\nexport STACKOVERFLOW_TEAM_NAME=your_team\n```\n\nOther features which could be added:\n\n- Add articles\n- Add comments\n- Add tags\n- Add users\n- Add votes\n- Add badges\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index readers stackoverflow integration",
"version": "0.1.3",
"project_urls": null,
"split_keywords": [
"answers",
"posts",
"questions"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "83e40202b80d78aa5334458fb29f208ef648b28ea21ac3548cd401702044dd70",
"md5": "1c9d5d12dd78a9691a29b8dd4153379c",
"sha256": "479533266c4d5962926a50e0d8728f5dadfc281a61823bce3a47be7fbae05bfe"
},
"downloads": -1,
"filename": "llama_index_readers_stackoverflow-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1c9d5d12dd78a9691a29b8dd4153379c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8.1,<4.0",
"size": 4245,
"upload_time": "2024-02-21T20:56:00",
"upload_time_iso_8601": "2024-02-21T20:56:00.386276Z",
"url": "https://files.pythonhosted.org/packages/83/e4/0202b80d78aa5334458fb29f208ef648b28ea21ac3548cd401702044dd70/llama_index_readers_stackoverflow-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b3a7d845e4e3955137fc1faf18aeaf45b42c36aa7ff23f11a9bc05da5bc3a5ef",
"md5": "f8f413a71e1399af903cb66db46b4e57",
"sha256": "5500f8c978a5d50f494d18406d6ce64c244dcb361da72e28c713dca648dfd031"
},
"downloads": -1,
"filename": "llama_index_readers_stackoverflow-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "f8f413a71e1399af903cb66db46b4e57",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8.1,<4.0",
"size": 3940,
"upload_time": "2024-02-21T20:56:01",
"upload_time_iso_8601": "2024-02-21T20:56:01.295759Z",
"url": "https://files.pythonhosted.org/packages/b3/a7/d845e4e3955137fc1faf18aeaf45b42c36aa7ff23f11a9bc05da5bc3a5ef/llama_index_readers_stackoverflow-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-21 20:56:01",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-readers-stackoverflow"
}