I am getting a TypeError when running the script for following specified accounts followers. The error is below:
session.follow_user_followers(['usernames'], amount=10, randomize=False, interact=True)
TypeError: follow_user_followers() got an unexpected keyword argument 'randomize'
I copied the code directly from the code page as follows:
session.follow_user_followers(['usernames'], amount=10, randomize=False, interact=True)
Can you include more of the trace before and after those lines?
Here is the full output from running my script:
Logged in successfully!
Session ended
Traceback (most recent call last):
File "C:\Python Scripts\InstaPy-master\quickstart.py", line 27, in
session.follow_user_followers(['usernames'], amount=10, randomize=False, interact=True)
TypeError: follow_user_followers() got an unexpected keyword argument 'randomize'
My code is as follows:
from instapy import InstaPy
insta_username = 'xxxx'
insta_password = 'xxxx'
session = InstaPy(username=insta_username, password=insta_password)
session.login()
session.follow_user_followers([鈥榰sernames鈥橾, amount=10, randomize=False, interact=True)
# end the bot session
session.end()
@jeometry could you update InstaPy, try again and paste all the error message ?
Hello All,
I have updated the file and now I no longer get the error. Thank you all for your help!