Instapy: IndexError: list index out of range

Created on 6 Nov 2017  路  5Comments  路  Source: timgrossmann/InstaPy

image

bug help wanted wontfix

Most helpful comment

hi @datteba , your InstaPy is outdated, could you update it and try again ?

Remember to update chromedriver as well.

After that, pls tell us if it still happening.

All 5 comments

@datteba Please post your quickstart file...

@timgrossmann

from random import randint
from random import sample
from time import sleep
from instapy import InstaPy

friend_list = ['friends']

user_list1 = ['users']
user_list2 = ['users']
user_list3 = ['users']
user_list4 = ['users']
user_list5 = ['users']

tag_list = ['tags']

rnd_0 = randint(20, 30)
rnd_1 = randint(20, 60)
rnd_2 = randint(20, 40)
rnd_3 = randint(10, 20)
rnd_4 = randint(70, 85)

InstaPy(username="user", password="pass", page_delay=15) \
  .login() \
  .set_upper_follower_count(limit=5000) \
  .set_lower_follower_count(limit=100) \
  .set_dont_include(friend_list) \
  .set_ignore_users(friend_list) \
  .set_do_follow(enabled=False, percentage=10, times=1) \
  .set_do_like(enabled=True, percentage=100) \
  .set_user_interact(amount=2, random=False, percentage=100) \
  .interact_user_followers(sample(user_list1, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list2, 4), amount=rnd_4, random=True) \
  .like_by_tags(sample(tag_list, 15), amount=40) \
  .interact_user_followers(sample(user_list3, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list4, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list5, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list1, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list2, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list3, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list4, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list5, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list1, 4), amount=rnd_4, random=True) \
  .like_by_tags(sample(tag_list, 15), amount=60) \
  .interact_user_followers(sample(user_list2, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list3, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list4, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list5, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list1, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list2, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list3, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list4, 4), amount=rnd_4, random=True) \
  .interact_user_followers(sample(user_list5, 4), amount=rnd_4, random=True) \
  .like_by_tags(sample(tag_list, 15), amount=70) \
.end()

@datteba i am not good in python. https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.random.randint.html#numpy.random.randint in the example it does return array. So maybe your amount=rnd_4 has a problem. You can find it by debugging

hi @datteba , your InstaPy is outdated, could you update it and try again ?

Remember to update chromedriver as well.

After that, pls tell us if it still happening.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this problem still occurs, please open a new issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rahulkapoor90 picture rahulkapoor90  路  3Comments

thisishotdog picture thisishotdog  路  3Comments

v77v picture v77v  路  3Comments

ingorichter picture ingorichter  路  3Comments

drcyber975 picture drcyber975  路  3Comments