ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.72k stars 1.47k forks source link

Like users from file error #60

Closed penarubah closed 7 years ago

penarubah commented 7 years ago

try to run this code by modifying follow_users_from_file.py But it give long error.

run this script by: python penarubah_like_3_media_from_file.py user_to_follow.txt

the code is:

"""
    instabot example

    Workflow:
        Take users from input file and like 3 latest media of them.
        The file should contain one username per line!
"""

import sys
import os

sys.path.append(os.path.join(sys.path[0],'../'))
from instabot import Bot

users_file = "users_to_follow.txt"

bot = Bot()
users_to_like = bot.read_list_from_file(users_file)
if not users_to_like:
    exit()
bot.login()
bot.like_users(users_to_like, nlikes=3)

screenshot_5 screenshot_4 users_to_follow.txt

ohld commented 7 years ago

Fixed in 0.3.2.2. Reopen of necessary.