Skip to content

Instantly share code, notes, and snippets.

@invisiblek
Created August 7, 2016 22:29
Show Gist options
  • Save invisiblek/3dfe75bcaf0bdb365c88ddf5ea9362bf to your computer and use it in GitHub Desktop.
Save invisiblek/3dfe75bcaf0bdb365c88ddf5ea9362bf to your computer and use it in GitHub Desktop.
diff --git a/scripts/accept-tos.py b/scripts/accept-tos.py
index 4d33bb4..644f0ac 100644
--- a/scripts/accept-tos.py
+++ b/scripts/accept-tos.py
@@ -10,10 +10,11 @@ from pgoapi.exceptions import AuthException
import pprint
import time
import threading
+import sys
def accept_tos(username, password):
api = PGoApi()
- api.set_position(40.7127837, -74.005941, 0.0)
+ api.set_position(45.5919100, -94.1661010, 0.0)
api.login('ptc', username, password)
time.sleep(2)
req = api.create_request()
@@ -22,4 +23,4 @@ def accept_tos(username, password):
print('Accepted Terms of Service for {}'.format(username))
#print('Response dictionary: \r\n{}'.format(pprint.PrettyPrinter(indent=4).pformat(response)))
-accept_tos('username', 'password')
\ No newline at end of file
+accept_tos(sys.argv[1], sys.argv[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment