Simple Stack.PY Example
Nathan Osman — 12 years, 2 months 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)