I have a .txt file with a bunch of account names on Instagram I want to follow. I am trying to write a code that will go line-by-line and follow each use, waiting a random number of seconds between each follow.
I keep getting a 'user_id' NONE, meaning the program is not accessing the .txt file I have a list of accounts I want to follow from.
Any ideas? Code to follow...
my_bot = Bot()
#login
my_bot.login(username="YYYYYY", password="XXXXX")
#Follow from Database
f = open('prospectslist.txt')
for name in f.readlines():
time.sleep(random.randint(10, 50))
my_bot.follow(name)
f.close()