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.1.1.tar.gz (3.9 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.1.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_stackoverflow-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cf4647554bb2139806d42f70e37fd3717668f1baf30a2d4c5c777d87dd7c027a
MD5 923108fd92e9d8bbf3d38b65699fedf2
BLAKE2b-256 7ce8e869cff2be20b9e8cbfdfc3417d917534e871d2628fef6e2ba34832a1028

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_stackoverflow-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6856eb67003295b172e8f041006fe2456581b7245504d9dce7b58fc80fed8b55
MD5 653f377c621ba791547b2b65c1bd02fc
BLAKE2b-256 9cc26a6e6ad7e73e93328739c34a8bf15b963dd021fae12236c45f000c7e1f6c

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.0

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page