InstaPy / InstaPy/instapy-quickstart

Instagram block 'likes' everytime

Đang mở
#44 1 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,

Instagram block my account for likes and comments after few hours of running my script.
I try to reduce likes distribution, it's not work.

One month ago, the script worked very well with >800 likes/day

Can you check my script please ? thanks !

`
import random
from instapy import InstaPy
from instapy import smart_run

# login credentials
insta_username = '...'
insta_password = '...'

# restriction data
dont_likes = ['#exactmatch', '[startswith', ']endswith', 'broadmatch', 'sex', 'nude', 'naked', 'pussy', 'dick', 'squirt', 'gay', 'homo', '#fit', '#fitfam', '#fittips', 'sex', 'nude', 'naked', 'pussy', '#abs', '#kids', '#children', '#child']
ignore_users = ['user1', 'user2', 'user3']

""" Prevent commenting on and unfollowing your good friends (the images will
still be liked)...
"""
friends = ["list of my following"]

""" Prevent posts that contain...
"""
ignore_list = []

# TARGET data
""" Set similar accounts and influencers from your niche to target...
"""
targets = ["list of 36 account"]

""" Skip all business accounts, except from list given...
"""
target_business_categories = ['category1', 'category2', 'category3']

# COMMENT data
comments = ['Oh! Nice! @{}',
'Really cool :raised_hands::open_mouth:',
'What camera or phone did you use @{}?',
'Nice one @{} :beers:',
'Oh nice! What is your next trip :airplane: ?',
':raised_hands: Yes!',
'What an nice shot! :heart_eyes: Did you use an app to edit? :nail_care:',
'Ohh! :heart_eyes: :wink:',
':thumbsup: :thumbsup: cool!',
':raised_hands: hey !',
'Like it :clap: :clap: !',
':ok_hand: ! Where is it?',
u'😮',
u'🌱',
u'🍕',
u'🚀',
u'💬',
u'💅',
u'🦑',
u'🌻',
u'⚡️',
u'🌈',
u'🎉',
u'😻']

# get a session!
while True:
session = InstaPy(username=insta_username,
password=insta_password,
headless_browser=False,
disable_image_load=True,
multi_logs=True)

# let's go! :>
with smart_run(session):
# HEY HO LETS GO
# general settings
session.set_dont_include(friends)
session.set_dont_like(dont_likes)
session.set_ignore_if_contains(ignore_list)
session.set_ignore_users(ignore_users)
session.set_simulation(enabled=False)
session.set_relationship_bounds(enabled=True,
potency_ratio=None,
delimit_by_numbers=True,
max_followers=3500,
max_following=900,
min_followers=15,
min_following=25,
min_posts=8)

session.set_skip_users(skip_private=True,
skip_no_profile_pic=True,
skip_business=True)

session.set_user_interact(amount=3, randomize=True, percentage=99, media='Photo')
session.set_do_like(enabled=True, percentage=91)
session.set_do_comment(enabled=True, percentage=1)
session.set_comments(comments, media='Photo')
session.set_do_follow(enabled=True, percentage=8, times=1)
session.set_action_delays(enabled=True, like=20, randomize=True, random_range=(80, 200))
session.set_quota_supervisor(enabled=True, sleep_after=['likes'], sleepyhead=True, stochastic_flow=True, notify_me=False, peak_likes=(55, 500))

# activities

# FOLLOW+INTERACTION on TARGETED accounts
""" Select users form a list of a predefined targets...
"""
number = random.randint(4, 6)
random_targets = targets

if len(targets) <= number:
random_targets = targets

else:
random_targets = random.sample(targets, number)

""" Interact with the chosen targets...
"""
session.interact_user_followers(random_targets,
amount=random.randint(420, 660))

# UNFOLLOW activity
""" Unfollow nonfollowers after one day...
"""
session.unfollow_users(amount=random.randint(20, 40),
InstapyFollowed=(True, "nonfollowers"),
style="FIFO",
unfollow_after=24 * 60 * 60, sleep_delay=400)

""" Unfollow all users followed by InstaPy after one week to keep the
following-level clean...
"""
session.unfollow_users(amount=random.randint(20, 40),
InstapyFollowed=(True, "all"), style="FIFO",
unfollow_after=96 * 60 * 60, sleep_delay=400)

""" Joining Engagement Pods...
"""
session.join_pods('general', 'travel')

"""
Have fun while optimizing for your purposes, Nuzzo
"""
`

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

Start by reviewing the posted Python script and its InstaPy entry points, including set_quota_supervisor, set_action_delays, interact_user_followers, and unfollow_users. Check whether the reported blocking can be reproduced and determine which activity or configuration is responsible. Done would require a confirmed cause and a clearly validated change, but the issue provides no failing test or project file.

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ó
5/5
Thời gian dự kiến
Hơn một tuần
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
15/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.