Questions

Getting some questions by ids from site:

from pystackapi import Site
from pystackapi.sites import StackOverflow

site = Site(StackOverflow)

questions = site.get_questions([9, 11])  # Getting questions with ids 9 and 11

question = site.get_question(4)  # Getting a question with id 4

print(questions)
print(question)

Last updated