-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove email and password from test files
Signed-off-by: Domenico Iezzi <[email protected]>
- Loading branch information
Domenico Iezzi
committed
Oct 17, 2017
1 parent
6857b15
commit a77b362
Showing
2 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
from gpapi.googleplay import GooglePlayAPI, RequestError | ||
from gpapi.googleplay import GooglePlayAPI | ||
|
||
import sys | ||
import argparse | ||
|
||
EMAIL = "dodo.godlike" | ||
PASSWD = "inpobgakicfmnhwc" | ||
ap = argparse.ArgumentParser(description='Test download of expansion files') | ||
ap.add_argument('-e', '--email', dest='email', help='google username') | ||
ap.add_argument('-p', '--password', dest='password', help='google password') | ||
|
||
args = ap.parse_args() | ||
|
||
testApps = ['com.cpuid.cpu_z'] | ||
server = GooglePlayAPI(debug=True) | ||
|
||
# LOGIN | ||
|
||
print('\nLogging in with email and password\n') | ||
server.login(EMAIL, PASSWD, None, None) | ||
server.login(args.email, args.password, None, None) | ||
|
||
download = server.download('com.haikugamesco.escapeasylum', 21, progress_bar=True) | ||
download = server.download('com.mapswithme.maps.pro', 1754, progress_bar=True, expansion_files=True) | ||
with open(download['docId'] + '.apk', 'wb') as first: | ||
first.write(download['data']) | ||
print('\nDownload successful\n') | ||
|
||
for obb in download['additionalData']: | ||
name = obb['type'] + '.' + str(obb['versionCode']) + '.' + download['docId'] + '.obb' | ||
with open(name, 'wb') as second: | ||
second.write(obb['data']) | ||
print('\nDownloaded additional data\n') | ||
|
||
print('\nDownload successful\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters