Whatever123456
Newbie
- Jun 11, 2017
- 29
- 0
I really like this program so I took five minutes to write an easier way for users to login. Add it to the beginning of example.py (delete lines 15-17)
# -> Tuple containing both arguments after 'opensourcebotsfuckyeah.py'
def accept_command_line_arguments():
commandLineArguments = []
for i in sys.argv:
commandLineArguments.append(i)
if len(commandLineArguments) != 3:
print("Format: opensourcebotsfuckyeah.py <Username> <Password>")
Username = input("Type Username Here: ")
Password = input("Type Password Here: ")
return (Username, Password)
Username = commandLineArguments[1]
Password = commandLineArguments[2]
return (Username, Password)
(login, password) = accept_command_line_arguments()
bot = InstaBot(
login = str(login),
password = str(password),
What exactly do you delete? I have pretty much no knowledge of python.