3

I was thinking is there any way I can log into my stackoverflow.com account through my python code.

Is there any stackoverflow-pythonAPI through which I can achieve the above task.

I googled before asking here but was not able to find any API nor any Hello World example of using it with python.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
RanRag
  • 48,359
  • 38
  • 114
  • 167

1 Answers1

5

You're in luck: there is both an API and there is are at least two python libraries (Py-StackExchange and Stack.PY) to use that API.

One caveat: Personal information requires that you use the v2.0 API, but the currently released version of Py-StackExchange only supports up to version 1.1. The GitHub repository for the library has a updating-2.0 branch that may or may not work for you. Stack.PY does support version 2.0 (and 2.1 too!).

The API itself is based on HTTP requests with JSON responses, so you could just call the API directly as well.

Community
  • 1
  • 1
Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343