InstaPy / InstaPy/instapy-quickstart
Problem when type "python good_usage_of_blacklist.py"
- Lenguaje dominante
- Python
- Estrellas
- 777
- Forks
- 763
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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')
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Reproduce el comando `python good_usage_of_blacklist.py` y lee `instapy/clarifai_util.py`, donde se informa de la falta del import de `clarifai`. Comprueba las instrucciones de configuración del quickstart para esa dependencia; la tarea está terminada cuando el comando puede importar `InstaPy` sin este `ModuleNotFoundError`.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- developer-experience
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100