From: Josh Roesslein Date: Mon, 6 Jul 2009 04:14:15 +0000 (-0500) Subject: Added simple example. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e6f275dee35aa4471ceb36d320c1d1a52825cc54;p=tweepy.git Added simple example. --- diff --git a/example.py b/example.py new file mode 100644 index 0000000..2d5adfc --- /dev/null +++ b/example.py @@ -0,0 +1,11 @@ +from api import API + +# Create API object +api = API() + +# Fetch public timeline +p_timeline = api.public_timeline() + +# Print texts of statuses +for status in p_timeline: + print status.text