Peter B. Peter B. - 1 month ago 6
Python Question

How to get data from stack exchange site

I need to get data for my research at university from specific stack exchange site.

I am using

python
and I need to extract title, text, answers and tags from every single question at this specific site. How can I do this most efficiently? Do I have to write scraper to get those data or can I use some kind of API? I need to save them into some kind of database.

Answer

You can take a look at the API for stack exchange. First you will need to Authenticate your request and then you can query all the endpoints mentioned in the API.