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.9.tar.gz (82.5 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.9-py3-none-any.whl (82.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ak_gpapi-3.0.9.tar.gz
  • Upload date:
  • Size: 82.5 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.9.tar.gz
Algorithm Hash digest
SHA256 48db6a5910a31aaf34bbcd6b14be6a1371b7b5c3a77663685ed2f04b6fb4d87e
MD5 301514c2cfaf06ad7feb44b8a0b1aedc
BLAKE2b-256 2f5677ed198b38c8833cc84649d72e3e4d317c2da25f16d17db1441dd80d905d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ak_gpapi-3.0.9.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.9-py3-none-any.whl.

File metadata

  • Download URL: ak_gpapi-3.0.9-py3-none-any.whl
  • Upload date:
  • Size: 82.6 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 628f9a749bf5a6f4d020a4aa67213c9a9e454c3cf933a3329ef6e678f8a9c16e
MD5 b6429cfcec7a80759781979dd1e12e1d
BLAKE2b-256 2e999fd78b4bfa220579e5678c82d9af84f4a4b9335a118df1f56e84ee05b0d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for ak_gpapi-3.0.9-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