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.1.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.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_stackoverflow-0.4.1.tar.gz
Algorithm Hash digest
SHA256 7dd7a6340e6f87e878bb54aa469a144071e89de1e8152d07072a3e80c71a52d0
MD5 a993212a21dbf3f78c0305741305cd91
BLAKE2b-256 6a21748631051498175e7f9e322c74d2f92915f413417a1e0990c99982a8fb1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_stackoverflow-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ff8742bf1f4feed8af41672ea555e45e890ae84501005816d2cd5c037b9ca74
MD5 30d2df78e423ce79d6b5efbd5d33dc23
BLAKE2b-256 3c513cefc679b94eaecdfef0713caf1bc242fef03cdd21b0fcbb70266023fa61

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 Pingdom Monitoring Sentry Error logging StatusPage Status page