skip to Main Content

Tweepy cursor .pages() with api.search_users returning same page again and again – Twitter API

auth = tweepy.OAuthHandler(consumer_token, consumer_secret) auth.set_access_token(access_token, access_secret) api = tweepy.API(auth) user_objs = [] name = "phungsuk wangdu" id_strs = {} page_no = 0 try: for page in tweepy.Cursor(api.search_users, name).pages(3): dup_count = 0 print("******* Page", str(page_no)) print("Length of page", len(page)) user_objs.extend(page) for…

VIEW QUESTION

Python Twitter API TwitterError: user_id must be type int

I'm trying to use python-twitter. I'm following this tutorial. Here is my code: tweet = cache.get('tweet') if not tweet: tweet = twitter.Api().GetUserTimeline(settings.TWITTER_USER)[0] tweet.date = datetime.strptime(tweet.created_at, "%a %b %d %H:%M:%S +0000 %Y") cache.set('tweet', tweet, settings.TWITTER_TIMEOUT) But I'm getting next error: Twitter.error.TwitterError:…

VIEW QUESTION
Back To Top
Search