Guest User

Untitled

a guest
Oct 16th, 2017
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # Use this format
  2. # username:value
  3. # password:value
  4. # Assuming no : characters in your usernames or passwords
  5. with open('myfile.txt') as f:
  6. credentials = [x.strip().split(':') for x in f.readlines()]
  7.  
  8. for username,password in credentials:
  9. # your code here
Add Comment
Please, Sign In to add comment