Instapy: Delay period before unfollowing

Created on 1 Feb 2018  路  9Comments  路  Source: timgrossmann/InstaPy

From the examples of the unfollow function;
session.unfollow_users(amount=10, onlyInstapyFollowed = True, onlyInstapyMethod = 'FIFO', sleep_delay=60)

This would unfollow 10 users every 60 minutes.

Is there a way to add a delay so that after following a user, unfollow can't be activated for a variable period eg:
session.unfollow_users(amount=10, onlyInstapyFollowed = True, onlyInstapyMethod = 'FIFO', sleep_delay=60, unfollow_delay=10080)

This would unfollow 10 users every 60 minutes, but only if account had been followed for 7 days or more.

wontfix

Most helpful comment

Here it is guys,
@underclass for delay of week, use

unfollow_users(unfollow_after=168*60*60)

or just
_unfollow_after=604800_

it's just seconds, for ease use hours*minutes*seconds format (1 week is 168 hours)

Also, the time is unique for every user..
@migueldierssen @CharlesCCC

_Hey_ @sionking _I didn't know you were working on this xD
I just wrote this yesterday, that I was to push but slept earlier.._

All 9 comments

This would be awesome!

I wonder if you could schedule this as a separate job with an offset;
https://github.com/timgrossmann/InstaPy#automate-with-schedule

Definitely a great idea, I believe this would potentially huge improve the throughput.

I have done a feature that unfollow each time we get to max followeing by user so we can drop unfollow_users

@sionking could you explain how you've achieved this please?

coding ... I will PR soon

Here it is guys,
@underclass for delay of week, use

unfollow_users(unfollow_after=168*60*60)

or just
_unfollow_after=604800_

it's just seconds, for ease use hours*minutes*seconds format (1 week is 168 hours)

Also, the time is unique for every user..
@migueldierssen @CharlesCCC

_Hey_ @sionking _I didn't know you were working on this xD
I just wrote this yesterday, that I was to push but slept earlier.._

@uluQulu @sionking you guys are the best 馃憤

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this problem still occurs, please open a new issue

Was this page helpful?
0 / 5 - 0 ratings