0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Tweepyで出来ることをまとめていく

Last updated at Posted at 2019-03-06

##自分のフォロワーをカウント

#AUTHの説明は割愛
import time
import tweepy

auth = tweepy.OAuthHandler(
        consumer_key='xxxxxxx',
        consumer_secret='xxxxxxx')
auth.set_access_token(
        'xxxxxxx',
        'xxxxxxx')

api = tweepy.API(auth)


ids = []
for page in tweepy.Cursor(api.followers_ids, screen_name="アカウント名").pages():
    ids.extend(page)
    time.sleep(60)

print (len(ids))
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?