Instabot executes with no results
- 主要语言
- Python
- 星标
- 18.2k
- 派生
- 3.9k
- PR 合并指标
- 30 天内没有已合并 PR
描述
I executed the InstaPy. Session. The code is below. In the end, although the session took more than 10 minutes, no follow no like, nothing happened. I wondered, how can I fix this? The tags that I used are very common tags. It may not be the problem.
Many thanks inadvance
INFO [2021-07-24 10:35:49] [account_name] Sessional Live Report:
|> LIKED 0 images | ALREADY LIKED: 0
|> COMMENTED on 0 images
|> FOLLOWED 0 users | ALREADY FOLLOWED: 0
|> UNFOLLOWED 0 users
|> LIKED 0 comments
|> REPLIED to 0 comments
|> INAPPROPRIATE images: 159
|> NOT VALID users: 0
|> WATCHED 0 story(ies) | WATCHED 0 reel(s)
On session start was FOLLOWING 159 users & had 35 FOLLOWERS
[Session lasted 10.72 minutes]
INFO [2021-07-24 10:35:49] [account_name] Session ended!
```
from instapy import InstaPy
from instapy import smart_run
import random
# from instabot import *
# import instaloader
# import instabot
import time
from os import system, name
SLEEP_TIME_BETWEEN_MAIN_LOOP = 5 * 60
SLEEP_TIME_BETWEEN_HASHTAG_LOOP = 60
USERNAME = "USERNAME"
PASSWORD = "PASSWORD"
dont_likes = ['follower', 'follow', 'gain', 'sex', 'nude', 'naked', 'beef', 'pork', 'seafood',
'egg', 'chicken', 'cheese', 'sausage', 'lobster',
'fisch', 'schwein', 'lamm', 'rind', 'kuh', 'meeresfrüchte',
'schaf', 'ziege', 'hummer', 'yoghurt', 'joghurt', 'dairy',
'meal', 'food', 'eat', 'pancake', 'cake', 'dessert',
'protein', 'essen', 'mahl', 'breakfast', 'lunch',
'dinner', 'turkey', 'truthahn', 'plate', 'bacon',
'sushi', 'burger', 'salmon', 'shrimp', 'steak',
'schnitzel', 'goat', 'oxtail', 'mayo', 'fur', 'leather',
'cream', 'hunt', 'gun', 'shoot', 'slaughter', 'pussy',
'breakfast', 'dinner', 'lunch']
friends = ['list of friends I do not want to interact with']
like_tag_list = ['tag1', 'tag2','tag3']
# prevent posts that contain some plantbased meat from being skipped
ignore_list = ['vegan', 'veggie', 'plantbased', 'sex']
accounts = ['accounts with similar content']
#headless_browser = True if you want to hide your browser
session = InstaPy(username = USERNAME, password = PASSWORD, headless_browser = True)
#session.login()
with smart_run(session):
session.set_relationship_bounds(enabled=True, max_followers=15000)
# You can set max and min followers here
#session.set_relationship_bounds(enabled=True, potency_ratio=-1.21, delimit_by_numbers=True, max_followers=15000, max_following=5555, min_followers=45, min_following=77)
session.set_dont_include(friends)
session.set_dont_like(dont_likes)
session.set_ignore_if_contains(ignore_list)
session.set_user_interact(amount=2, randomize=True, percentage=60)
session.set_do_follow(enabled=True, percentage=40)
session.set_do_like(enabled=True, percentage=80)
# activity
session.like_by_tags(random.sample(like_tag_list, 3), amount=random.randint(50, 100), interact=True)
#session.unfollow_users(amount=random.randint(75, 150), InstapyFollowed=(True, "all"), style="FIFO", unfollow_after=90 * 60 * 60, sleep_delay=501)
""" Joining Engagement Pods...
"""
photo_comments = ['great, would love if you could check out my stuff too :)',
'super ,would love if you could check out my stuff too :)',
'good ,would love if you could check out my stuff too :)',
'very good ,would love if you could check out my stuff too :)',
'good ,would love if you could check out my stuff too :)',
'wow ,would love if you could check out my stuff too :)',
'WOW ,would love if you could check out my stuff too :)',
'cool ,would love if you could check out my stuff too :)',
'GREAT ,would love if you could check out my stuff too :)',
'magnificent ,would love if you could check out my stuff too :)',
'magical ,would love if you could check out my stuff too :)',
'very cool ,would love if you could check out my stuff too :)',
'stylish ,would love if you could check out my stuff too :)',
'beautiful ,would love if you could check out my stuff too :)',
'so beautiful ,would love if you could check out my stuff too :)',
'so stylish ,would love if you could check out my stuff too :)',
'so professional ,would love if you could check out my stuff too :)',
'lovely ,would love if you could check out my stuff too :)',
'so lovely ,would love if you could check out my stuff too :)',
'very lovely ,would love if you could check out my stuff too :)',
'glorious ,would love if you could check out my stuff too :)',
'so glorious ,would love if you could check out my stuff too :)',
'very glorious ,would love if you could check out my stuff too :)',
'adorable ,would love if you could check out my stuff too :)',
'excellent ,would love if you could check out my stuff too :)',
'amazing ,would love if you could check out my stuff too :)']
session.set_do_comment(enabled=True, percentage=95)
session.set_comments(photo_comments, media='Photo')
session.join_pods(topic='decoration')
#session.join_pods(topic='decoration', engagement_mode='no_comments')
#session.set_action_delays(enabled=True, like=120)
```
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。