Google Play Unofficial Python API
Go to file
Domenico Iezzi d6a3c5a42f Fixed wrong object name causing error
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
2017-09-25 21:38:48 +02:00
Documentation Added some mitmproxy logs 2017-09-07 19:44:23 +02:00
gpapi Fixed wrong object name causing error 2017-09-25 21:38:48 +02:00
.gitignore Updated gitignore 2017-09-18 15:48:58 +02:00
.travis.yml Added setup.py + changes to the lib structure 2017-09-21 11:19:48 +02:00
googleplay.proto Removed useless protobuf messages 2017-09-18 15:48:01 +02:00
README.md Added setup.py + changes to the lib structure 2017-09-21 11:19:48 +02:00
requirements.txt Typo in file name 2017-09-16 15:00:19 +02:00
setup.py Added setup.py + changes to the lib structure 2017-09-21 11:19:48 +02:00
test.py Added setup.py + changes to the lib structure 2017-09-21 11:19:48 +02:00

Google play python3 API Build Status

This project contains an unofficial API for google play interactions. The code mainly comes from GooglePlayAPI project which was written for python2 and it's not maintained anymore. The code was ported to python3 with some important changes:

  • ac2dm authentication with checkin and device info upload
  • updated search and download calls
  • using headers of a Nexus 6P. Add you own device under device.properties file

Usage

Check the test.py module for a simple example.

An important note about login function:

def login(self, email, password, ac2dmToken=None, gsfId=None)

for first time logins, you should only provide email and password. The module will take care of retrieving an ac2dm token, registering "your device" to the google account you supplied, and retrieving a Google Service Framework ID (which basically is the android ID of a device).

For the next logins you should save the ac2dm master token and the gsfId (androidId), and provide them as parameters to the login function. If you login again with email and password only, this is the equivalent of deleting the google account from you device and re-initalize it every time.

API reversing

Since I started playing with a more recent version of the GooglePlay API on LineageOS 14.1 (Android 7.1) using mitmproxy, I gathered some information about new APIs. Checkout the Documentation folder for more details on single API endpoints.

Development status

  • Investigate how paid apps download works
  • Investigate if it's possible to dowload apk with obb files