InstaPy / InstaPy/instapy-quickstart

Problem when type "python good_usage_of_blacklist.py"

Aperta
#114 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
777
Fork
763
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When i type "python good_usage_of_blacklist.py"

**Traceback (most recent call last):
File "good_usage_of_blacklist.py", line 10, in
from instapy import InstaPy
File "D:\InstaPy-master\instapy\__init__.py", line 6, in
from .instapy import InstaPy
File "D:\InstaPy-master\instapy\instapy.py", line 21, in
from .clarifai_util import check_image
File "D:\InstaPy-master\instapy\clarifai_util.py", line 3, in
from clarifai.rest import ClarifaiApp
ModuleNotFoundError: No module named 'clarifai'**

[https://i.postimg.cc/02DhDfDx/Screenshot-24.png](url)

Please Help me ,im newbie of all this script

My edited script :
from instapy import InstaPy
from instapy import smart_run

insta_username = 'myusername'
insta_password = 'mypassword'

# get a session!
session = InstaPy(username=insta_username,
password=insta_password,
use_firefox=True,
page_delay=20,
bypass_suspicious_attempt=False,
nogui=False,
multi_logs=True)

# let's go! :>
with smart_run(session):
# settings
""" I don't use relationship bounds, but messed with it before and had
some arbitrary numbers here
"""
session.set_relationship_bounds(enabled=False,
potency_ratio=-1.21,
delimit_by_numbers=True,
max_followers=10000,
max_following=4000,
min_followers=50,
min_following=5)
""" Create a blacklist campaign to avoid bot interacting with users
again. I never turn this off
"""
session.set_blacklist(enabled=True, campaign='blacklist')
session.set_do_like(enabled=True, percentage=100)
session.set_do_comment(enabled=True, percentage=100)
session.set_comments(['sensored text :pensive: :pray:',
'sensored text :pensive: :pray:',
'sensored text :pensive: :pray:',
'sensored text :pensive: :pray:',
'sensored text :pensive: :pray:',
'sensored text :pensive: :pray:',
'sensored text :pensive: :pray:',
'sensored text :pensive: :pray:',
'sensored text :pensive: :pray:'],
media='Photo')
session.set_comments(
['sensored text :pensive: :pray:',
'sensored text :pensive: :pray:',
'sensored text :pensive: :pray:',],
media='Video')
# session.set_dont_include(['friend1', 'friend2', 'friend3'])
session.set_dont_like(['#naked', '#sex', '#fight'])
session.set_user_interact(amount=1, randomize=False, percentage=50)
session.set_simulation(enabled=True)

# activity

""" First follow user followers leaves comments on these user's posts...
"""
session.follow_user_followers(['user1', 'user2', 'user3'], amount=125,
randomize=False, interact=True,
sleep_delay=600)

""" Second follow user follows doesn't comment on users' posts...
"""
session.follow_user_followers(['user4', 'user5'], amount=50,
randomize=False, interact=False,
sleep_delay=600)

""" Unfollow amount intentionally set higher than follow amount to catch
accounts that were not unfollowed last run.
Blacklist set to false as this seems to allow more users to get
unfollowed for whatever reason.
"""
session.set_blacklist(enabled=False, campaign='blacklist')
session.unfollow_users(amount=1000, InstapyFollowed=(True, "all"),
style="FIFO", unfollow_after=None,
sleep_delay=600)

""" Joining Engagement Pods...
"""
session.join_pods(topic='travel', engagement_mode='no_comments')

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Reproduce the `python good_usage_of_blacklist.py` command and read `instapy/clarifai_util.py`, where the missing `clarifai` import is reported. Check the quickstart setup guidance for that dependency; done means the command can import `InstaPy` without this `ModuleNotFoundError`.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
developer-experience
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.