Google Play Unofficial Python API
Go to file
Domenico Iezzi 46b427124d
Updated Protobuf definition and parsing
Newer definition have been fetched from play-store-api. Moreover, the
following enhanchements are introduced:

- An new function utils.parseProtobufObj will automatically parse any
Protobuf object into a dictionary, so there's no need to manually
specify each field to parse
- Added toc() and acceptTos() functions
- Added deviceCheckinConsistencyToken and dfeCookie to API state and
headers
- Since search results are now divided into clusters, each one
representing a different subcategory, now the search() API call returns
a list of clusters, each one containing a list of apps
2018-12-12 17:23:07 +01:00
Documentation Added script to fetch devices from play-store-api 2018-07-15 13:15:00 +02:00
gpapi Updated Protobuf definition and parsing 2018-12-12 17:23:07 +01:00
scripts Added script to fetch devices from play-store-api 2018-07-15 13:15:00 +02:00
test Updated Protobuf definition and parsing 2018-12-12 17:23:07 +01:00
.gitignore Added API to fetch search suggestions 2018-04-06 20:47:58 +02:00
.travis.yml moved tests into a separate folder 2018-07-15 12:23:38 +02:00
googleplay.proto Updated Protobuf definition and parsing 2018-12-12 17:23:07 +01:00
LICENSE.md Typo in LICENSE.md 2017-10-09 16:34:06 +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 Prepare for v0.4.3 2018-09-08 18:26:58 +02: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.