DENNIS
DENNIS

Reputation: 25

tweepy.cursor is not callablepylint(not-callable)

I'm trying to print followers from twitter using the ''' for follower in tweepy.cursor(api.followers).items(): print(follower.name) ''' but am getting this type of error *tweepy.cursor is not callablepylint(not-callable) av tried using from '''tweepy import tweepy''' but it too is getting more errors >like module cannot be imported from class tweepy

Upvotes: 0

Views: 285

Answers (1)

Beppe C
Beppe C

Reputation: 14003

Try with Cursor (instead of cursor):

import tweepy

api = tweepy.API(auth)
for follower in tweepy.Cursor(api.followers).items():
  print(follower.name)

Upvotes: 1

Related Questions