docs
  • Getting started
    • Welcome
    • 📥Installation
    • Simple example
  • API reference
    • Index
    • Module "sites"
    • Class "Site"
    • Class "Network"
    • Exceptions
  • Recipes
    • Index
    • Answers
    • Badges
    • Questions
    • Search
    • Site info
    • Users
Powered by GitBook
On this page
  1. Recipes

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)
PreviousBadgesNextSearch

Last updated 1 year ago