Having Difficulty Using Twitter Api Command Implemention In Python
I am trying to implement this into python: https://dev.twitter.com/docs/api/1.1/get/statuses/retweeters/ids here is what I have so far: def reqs(): t = Twitter(auth=OAuth('...')) t
Solution 1:
So after you would do this
from twitter import *
t = Twitter(auth=OAuth(...))
tweets = t.statuses.user_timeline.snl()
for tweet in tweets:
retweets = t.statuses.retweets_of_me(since_id=str(tweet['id']), max_id=str(tweet['id']))
idList.append(retweets)
After this all you would have to just go through idList
, and find the ids that only appear once in the list.
Solution 2:
Please see my solution at this post: difficulty using twitter api command implemention in python
It does use the Twyton API, however.
Solution 3:
use tweeters instead. boom. figured it out on my own
t.statuses.retweets(....)
Post a Comment for "Having Difficulty Using Twitter Api Command Implemention In Python"