I get this error when I try to enter my user name and password:
client = twitter.Api(username="hinakhan@yahoo.com", password="random")
–
Traceback (most recent call last):
File "<pyshell#44>", line 1, in <module>
client = twitter.Api(username="hinakhan@yahoo.com", password="random")
TypeError: __init__() got an unexpected keyword argument 'username'
You are working on old documentation which is now expire.You need to read and consult with the new documentation and work with it.This error may also occur due to conffusion in libraries you need to check that you read the correct documentation or mixing up others