Skip to main content

Unofficial python api for google play

Project description

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)

Build

This is the recommended way to build the package, since setuptools will take care of generating the googleplay_pb2.py file needed by the library (check the setup.py)

$ python setup.py build

Usage

Check scripts in test directory for more examples on how to use this API.

from gpapi.googleplay import GooglePlayAPI

mail = "mymail@google.com"
passwd = "mypasswd"

api = GooglePlayAPI(locale="en_US", timezone="UTC", device_codename="hero2lte")
api.login(email=mail, password=passwd)

result = api.search("firefox")

for doc in result:
    if 'docid' in doc:
        print("doc: {}".format(doc["docid"]))
    for cluster in doc["child"]:
        print("\tcluster: {}".format(cluster["docid"]))
        for app in cluster["child"]:
            print("\t\tapp: {}".format(app["docid"]))

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 your fake 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, this is the equivalent of re-initalizing your android device with a google account, invalidating previous gsfId and authSubToken.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ak_gpapi-3.0.8.tar.gz (113.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ak_gpapi-3.0.8-py3-none-any.whl (114.7 kB view details)

Uploaded Python 3

File details

Details for the file ak_gpapi-3.0.8.tar.gz.

File metadata

  • Download URL: ak_gpapi-3.0.8.tar.gz
  • Upload date:
  • Size: 113.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ak_gpapi-3.0.8.tar.gz
Algorithm Hash digest
SHA256 35f36ca17d073c54d50612311e6820679f0c04a62c6ca70a0cdcd8583178ca2c
MD5 029c9b5ee4d0595edcad628a8c1b544c
BLAKE2b-256 5bd5b958e8bbfc01fdbe02ae5e07b45fa3fcda1fb641b5f6e2ed5ed607fba78a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ak_gpapi-3.0.8.tar.gz:

Publisher: pypi_publish.yaml on appknox/googleplay-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ak_gpapi-3.0.8-py3-none-any.whl.

File metadata

  • Download URL: ak_gpapi-3.0.8-py3-none-any.whl
  • Upload date:
  • Size: 114.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ak_gpapi-3.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 540be120dc58bbd0916a00f00b632c353ed8965202bcd2f935dca7f370e4fef1
MD5 98df2629305984ffa3af2f61eeb32f3e
BLAKE2b-256 05b2f982632c7f72d3c63ef209cd2378fa5db7c4cc7265e16ba2b07796f5968b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ak_gpapi-3.0.8-py3-none-any.whl:

Publisher: pypi_publish.yaml on appknox/googleplay-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page