mirror of
https://github.com/run-llama/llama-hub.git
synced 2025-08-13 03:01:46 +00:00
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/
- Click Create a new PAT
- Name the token, and pick the team scope
- Select an expiration date
- Click Create
Add this to your env, or to the instantiation of the StackoverflowReader(pa_token, team_name, cache_dir='./stackoverflow_cache')
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