RanRag
RanRag

Reputation: 49577

How to log into stackoverflow.com through python?

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.

Upvotes: 3

Views: 144

Answers (1)

Martijn Pieters
Martijn Pieters

Reputation: 1124238

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.

Upvotes: 5

Related Questions