Simple Stack.PY Example
Nathan Osman — 12 years, 1 month ago


from stackpy import Site
# Create an object that represents the site
au = Site('askubuntu')
# Fetch the latest 30 questions
questions = au.questions
# Print the title and owner of the questions
for q in questions:
print '%s asked "%s"' % (q.owner, q)