Answers

Getting some answers by ids from site:

from pystackapi import Site
from pystackapi.sites import StackOverflow

site = Site(StackOverflow)

answers = site.get_answers([7, 12])  # Getting answers with ids 7 and 12

answer = site.get_answer(18)  # Getting an answer with id 18

print(answers)
print(answer)

Last updated