Google Play Unofficial Python API
Go to file
Domenico Iezzi 23937e6cb8
Improved file delivery + minor changes
* Updated user agent string with data taken from play-store-api
* *download* and *delivery* functions will now return a python generator
rather than raw bytes, to prevent app loading entire files in memory.
This generator can be iterated to get chunk of bytes to write, as
discussed in issue #35.
* as a consequence of the previous point, there is no more progress bar
feature for downloading. It should be implemented by developers using
the API.
2018-01-26 18:24:19 +01:00
Documentation Added userProfile api to Documentation 2017-11-27 16:46:05 +01:00
gpapi Improved file delivery + minor changes 2018-01-26 18:24:19 +01:00
.gitignore Fixed commit d422074 re-formatting issue 2017-12-09 09:55:11 +01:00
.travis.yml Removed python2 test 2018-01-25 11:47:02 +01:00
googleplay.proto Initial userProfile implementation 2017-12-09 11:36:56 +01:00
LICENSE.md Typo in LICENSE.md 2017-10-09 16:34:06 +02:00
obb_download_test.py Remove email and password from test files 2017-10-17 17:58:24 +02:00
README.md Update README.md 2017-11-06 18:20:03 +01:00
setup.cfg Added file for PyPi upload 2017-10-05 22:38:35 +02:00
setup.py Improved file delivery + minor changes 2018-01-26 18:24:19 +01:00
test.py Improved file delivery + minor changes 2018-01-26 18:24:19 +01:00

Google play python API Build Status

This project contains an unofficial API for google play interactions. The code mainly comes from GooglePlayAPI project which is not maintained anymore. The code was updated with some important changes:

  • ac2dm authentication with checkin and device info upload
  • updated search and download calls
  • select the device you want to fake from a list of pre-defined values (check device.properties) (defaults to a OnePlus One)

Usage

Check test.py for a simple example.

An important note about login function:

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

for first time logins, you should only provide email and password. The module will take care of initalizing the api,upload device information to the google account you supplied, and retrieving a Google Service Framework ID (which, from now on, will be the android ID of a device).

For the next logins you should save the gsfId and the authSubToken, and provide them as parameters to the login function. If you login again with email and password only, this is the equivalent of re-initalizing your android device with a google account.

Documentation

For some documentation about the google play API check out the relative folder.