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

Users

Getting some users by ids from site:

from pystackapi import Site
from pystackapi.sites import StackOverflow

site = Site(StackOverflow)

users = site.get_users([2, 3])  # Getting users with ids 2 and 3

user = site.get_user(1)  # Getting a user with id 1

print(users)
print(user)
PreviousSite info

Last updated 1 year ago