Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Use this format
- # username:value
- # password:value
- # Assuming no : characters in your usernames or passwords
- with open('myfile.txt') as f:
- credentials = [x.strip().split(':') for x in f.readlines()]
- for username,password in credentials:
- # your code here
Add Comment
Please, Sign In to add comment