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)
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:
users_to_follow.txt