Tweepy Help

43 views
Skip to first unread message

Prasanna Mestha

unread,
Dec 25, 2015, 4:34:31 AM12/25/15
to Google App Engine
Hi,
I am new to app engine and tweepy so as when i created a simple app, i always end up getting errors. How can i search for tweets in app engine?

import tweepy

auth = tweepy.OAuthHandler('kljaYhxWqM2LBqUQdbY1X4H0V', 'ANkoqZx6bx65CSDITfVeFrhSahqst4TsbBrLVZWSlSaMUaJBYQ')
auth.set_access_token('622919352-nrH1LzNOmdn2VI62M9oZJT6dJA1GMBiZBJaypRrE', 'pxr36RyGuCHaIWluqtWENnB05sNGi0u20GdyH17Xw1fQQ')

api = tweepy.API(auth)

public_tweets = api.home_timeline()
for tweet in public_tweets:
    print tweet.text


Thanks

Adam (Cloud Platform Support)

unread,
Dec 26, 2015, 7:46:34 PM12/26/15
to Google App Engine
Probably the first place to start is to learn how to create a proper App Engine app in Python by reading the documentation, such as the tutorial.

timh

unread,
Dec 26, 2015, 10:35:24 PM12/26/15
to Google App Engine
In addition to what @Adam said, you should include what the error is rather than " always end up getting errors"  

T
Reply all
Reply to author
Forward
0 new messages