TwitterFollowBot icon indicating copy to clipboard operation
TwitterFollowBot copied to clipboard

Offset to auto_follow_followers_of_user?

Open JSTQ opened this issue 10 years ago • 1 comments

Currently if i get like 5 users, it gets same people every time until someone else will follow. Is there a way to get 500 users with 500 offset?

Also, what is the limit of this request?

JSTQ avatar Jul 10 '15 18:07 JSTQ

It certainly seems feasible to allow an offset parameter to the auto_follow_followers_of_user function. All it would do is query all of the person's followers, then use list slicing to start at the index specified by the parameter.

I added this as a feature enhancement. I won't have time to work on it any time soon, but it wouldn't take too much work to implement if you (or someone wants to send a PR):

  1. Add an offset parameter to https://github.com/rhiever/TwitterFollowBot/blob/master/TwitterFollowBot/init.py#L344

  2. Change the slicing here to start at the offset instead: https://github.com/rhiever/TwitterFollowBot/blob/master/TwitterFollowBot/init.py#L350

rhiever avatar Jul 20 '15 19:07 rhiever