11
有沒有更好的方式來獲得的追隨者清單的網名與Tweepy比這最好的方式來獲得的追隨者清單在Python與Tweepy
for follower in api.followers_ids('twitter'):
print api.get_user(follower).screen_name
有沒有更好的方式來獲得的追隨者清單的網名與Tweepy比這最好的方式來獲得的追隨者清單在Python與Tweepy
for follower in api.followers_ids('twitter'):
print api.get_user(follower).screen_name
我覺得這是更有效的:
for user in tweepy.Cursor(api.followers, screen_name="twitter").items():
print user.screen_name
僅供參考,它使用followers/list twitter API調用。
我得到「AttributeError:'API'對象沒有屬性'追隨者'」當試圖使用這段代碼片段。 – user2547755
你正在使用什麼'tweepy'版本?直接從github安裝最新的'tweepy'版本。 – alecxe
這些人不適用於追隨者號碼,如600K或1MM ...如何提取許多追隨者id?確實知道嗎? – dave