import tango """ Instantiate Tango with no Authentication """ twitter = tango.setup() trends = twitter.getWeeklyTrends() print trends
import tango, pprint # Authenticate using Basic (HTTP) Authentication twitter = tango.setup(authtype="Basic", username="******", password="******") friends_timeline = twitter.getFriendsTimeline(count="150", page="3") for tweet in friends_timeline: print tweet["text"]