Skip to content
This repository was archived by the owner on May 10, 2020. It is now read-only.

Latest commit

 

History

History
13 lines (10 loc) · 800 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 800 Bytes

PySO

A small python module that helps you search Stack Overflow!

Requirements

  • asyncio (allows for asynchronous operation)
  • asynciohttp (for async HTTP requests)
  • ujson (for JSON parsing)

Setup

To set up PySO please open https://stackexchange.com/oauth/dialog?client_id=9997&scope=no_expiry&redirect_uri=https://stackexchange.com/oauth/login_success and log in with your stack overflow account. Authorize the app and once it's done you should see a token appear in your url bar. Copy this to the access_token field. You should now be ready to go!

Usage

Call Search(someSearchStringHere) to search Stack Overflow using PySO. someSearchStringHere can be any string you wish to search Stack Overflow for. It'll return the best answer to the best question with an accepted answer.