forked from NeroBurner/googleplay-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apishell.py
executable file
·36 lines (27 loc) · 870 Bytes
/
apishell.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/python
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
BANNER = """
Google Play Unofficial API Interactive Shell
Successfully logged in using your Google account. The variable 'api' holds the API object.
Feel free to use help(api).
"""
import sys
import code
import helpers
try:
# Python 2
import urlparse
except ImportError:
# Python 3
import urllib.parse as urlparse
from googleplay_api.googleplay import GooglePlayAPI
# read config from config.py
config = GooglePlayAPI.read_config()
# connect to GooglePlayStore
api = GooglePlayAPI(config['ANDROID_ID'])
api.login(config['GOOGLE_LOGIN'], config['GOOGLE_PASSWORD'], config['AUTH_TOKEN'])
code.interact(BANNER, local=locals())