Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import csv
- accounts_file = "accounts.txt"
- locations_file = "locations.txt"
- runner_template = "nohup python ../../runserver.py -ns -k \"[GMAPS_KEY]\" -l \"{location}\" -u \"{username}\" -p \"{password}\" -st 3 &"
- starting_line = "nohup python ../../runserver.py -os -k \"[GMAPS_KEY]\" -l \"[SOME LOCATION HERE]\" &"
- print(starting_line)
- with open(accounts_file) as accounts_csvfile:
- with open(locations_file) as locations:
- accounts = csv.reader(accounts_csvfile)
- for account, location in zip(accounts, locations):
- username, password = account
- # print(username, password, lat, lon)
- print(runner_template.format(username=username, password=password, location=location.strip()))
- print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement