InstaPy / InstaPy/instapy-quickstart

Not able to unfollow users! Any scripts to test?

Đang mở
#202 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
777
Fork
763
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện hành vi từ script được cung cấp, tập trung vào entry point session.unfollow_users cùng các tùy chọn InstapyFollowed, nonFollowers, unfollow_after và sleep_delay. Xác định lý do những người dùng được yêu cầu không bị bỏ theo dõi và xác nhận hành vi bằng một script tối thiểu hoặc cách sử dụng được ghi chép; hoàn thành khi đã xác định được nguyên nhân và một cách sửa đáng tin cậy.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.