Reputation: 25
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
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