Skip to main content

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')

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_readers_stackoverflow-0.4.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_readers_stackoverflow-0.4.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_stackoverflow-0.4.0.tar.gz
Algorithm Hash digest
SHA256 dbde6b255a77ee39955de7f76d22bc8768caf17f09bf7fbe4b19a4c27a562560
MD5 5c030ec940a933ac1f3d89a8a72926e6
BLAKE2b-256 596af9a4e97e0c944b30d3d78b636c4585cc58b59d0b920587cae3072d4892c3

See more details on using hashes here.

File details

Details for the file llama_index_readers_stackoverflow-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_stackoverflow-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 508134bf03cd31d24b4edc472328c05026d3d10f63b4a6eaae5168d168a9546d
MD5 27736000f7a01ffb32313efb81926ae1
BLAKE2b-256 8ca80621768bd23c30cc5831e65b2cba4a553113c682a5b1d837b6cdeab1ce43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page