skip some user followers with tweepy
up vote
0
down vote
favorite
I am using Python Tweepy to get followers of a twitter user and storing it in my db. Following is my code snippet:
for follower in tweepy.Cursor(api.followers, screen_name=twitter_user, skip_status=True, count=200).items():
follower = follower._json
db.store(follower)
After a couple of weeks I want to update the twitter_user and fetch it's followers again. Is there any way that I can only get those followers which I do not already have stored in my db? Can I provide a list of follower ids to skip or something like that? Some twitter users have followers in millions so getting all the followers again on every update can be very costly.
I would appreciate any help
python twitter tweepy
add a comment |
up vote
0
down vote
favorite
I am using Python Tweepy to get followers of a twitter user and storing it in my db. Following is my code snippet:
for follower in tweepy.Cursor(api.followers, screen_name=twitter_user, skip_status=True, count=200).items():
follower = follower._json
db.store(follower)
After a couple of weeks I want to update the twitter_user and fetch it's followers again. Is there any way that I can only get those followers which I do not already have stored in my db? Can I provide a list of follower ids to skip or something like that? Some twitter users have followers in millions so getting all the followers again on every update can be very costly.
I would appreciate any help
python twitter tweepy
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am using Python Tweepy to get followers of a twitter user and storing it in my db. Following is my code snippet:
for follower in tweepy.Cursor(api.followers, screen_name=twitter_user, skip_status=True, count=200).items():
follower = follower._json
db.store(follower)
After a couple of weeks I want to update the twitter_user and fetch it's followers again. Is there any way that I can only get those followers which I do not already have stored in my db? Can I provide a list of follower ids to skip or something like that? Some twitter users have followers in millions so getting all the followers again on every update can be very costly.
I would appreciate any help
python twitter tweepy
I am using Python Tweepy to get followers of a twitter user and storing it in my db. Following is my code snippet:
for follower in tweepy.Cursor(api.followers, screen_name=twitter_user, skip_status=True, count=200).items():
follower = follower._json
db.store(follower)
After a couple of weeks I want to update the twitter_user and fetch it's followers again. Is there any way that I can only get those followers which I do not already have stored in my db? Can I provide a list of follower ids to skip or something like that? Some twitter users have followers in millions so getting all the followers again on every update can be very costly.
I would appreciate any help
python twitter tweepy
python twitter tweepy
asked 2 hours ago
Ronnie
478
478
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53370665%2fskip-some-user-followers-with-tweepy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown