したがって、tweepy のドキュメントから、ユーザーapi.me () を使用して、ユーザーがフォローしている友人のリストを取得できるはずです: http://pythonhosted.org/tweepy/html/api.html#user-methods通常の OAuth ダンスを行いました:
import tweepy
consumer_token='#####'
consumer_secret='$$$$$'
access_token='&&&&&'
access_token_secret='****'
auth = tweepy.OAuthHandler(consumer_token, consumer_secret)
auth.set_access_token(access_token,access_token_secret)
api = tweepy.API(auth)
daysinn_friends=api.me('DaysInnCanada')
そして、pythonは私に次のようなエラーを出しました:
Traceback (most recent call last):
File "<pyshell#40>", line 1, in <module>
daysinn_friend=api.me('DaysInnCanada')
TypeError: me() takes exactly 1 argument (2 given)
しかし、私は me() に 2 つの引数を渡しませんでした。唯一の引数は screen_name でした。私は本当に混乱していて、それを理解できませんでした。ありがとう