from pystackapi import Site
from pystackapi.sites import StackOverflow
site = Site(StackOverflow) # Creating a Site class for the StackOverflow site
info = site.get_info() # Calling the necessary method
print(info.total_questions) # Getting the necessary key