简体   繁体   中英

API for stackoverflow data

is there any API through which I can access StackOverflow data in python?

I am also trying to fetch data from Bigquery but I am getting a 403 error

Forbidden: 403 GET https://dp.kaggle.net/bigquery/v2/projects/stackoverflow/datasets/posts_questions : Forbidden: [stackoverflow.posts_questions]

from google.cloud import bigquery
client = bigquery.Client()
data_ref = client.dataset('posts_questions', project='stackoverflow')
que_data = client.get_dataset(data_ref)

There is a package in pypi called StackAPI

pip install StackAPI

A quick google will give you the results

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM