InstaPy / InstaPy/instapy-quickstart
Not able to unfollow users! Any scripts to test?
- Dominant language
- Python
- Stars
- 777
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
Hi, with my script I can't unfollow users.
It seems the first time after some hours began to delete someone (just 8 users), but then any more.
My script is the following, please could you check if is there anything wrong or if I have to modify something else?
Othersiwe could you suggest me a simple script just to unfollow?
Thanks a lot.
import random
from instapy import InstaPy
from instapy import smart_run
session = InstaPy(username='...', password='...', headless_browser=False)
with smart_run(session):
hashtags = ['...']
random.shuffle(hashtags)
my_hashtags = hashtags[:5]
session.set_ignore_if_contains(['...'])
session.set_dont_like(['...'])
session.set_do_follow(enabled=True, percentage=20, times=1)
session.set_do_comment(enabled=True, percentage=50)
session.set_comments(['...'], media='Photo')
session.set_do_like(True, percentage=60)
session.set_delimit_liking(enabled=True, max_likes=150, min_likes=0)
session.set_delimit_commenting(enabled=True, max_comments=10, min_comments=0)
session.set_relationship_bounds(enabled=True,
potency_ratio=None,
delimit_by_numbers=True,
min_posts=15,
max_posts=3000,
max_followers=10000,
max_following=8000,
min_followers=50,
min_following=50)
session.set_quota_supervisor(enabled=True,
sleep_after=['likes'],
sleepyhead=True, stochastic_flow=True,
notify_me=True,
peak_likes_hourly=25,
peak_likes_daily=350,
peak_comments_hourly=15,
peak_comments_daily=150,
peak_follows_hourly=15,
peak_follows_daily=70,
peak_unfollows_hourly=30,
peak_unfollows_daily=150,
peak_server_calls_hourly=400,
peak_server_calls_daily=4000)
session.set_user_interact(amount=10, randomize=True, percentage=50)
session.set_mandatory_language(enabled=True, character_set='LATIN')
session.like_by_tags(my_hashtags, amount=10, media=None)
session.unfollow_users(amount=150, InstapyFollowed=(True, "all"), style="FIFO", unfollow_after=30*60*60, sleep_delay=600)
session.unfollow_users(amount=150, nonFollowers=True, style="RANDOM", unfollow_after=42*60*60, sleep_delay=655)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.