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.4.tar.gz (111.9 kB view details)

Uploaded Source

Built Distribution

ak_gpapi-3.0.4-py3-none-any.whl (112.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ak_gpapi-3.0.4.tar.gz
  • Upload date:
  • Size: 111.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for ak_gpapi-3.0.4.tar.gz
Algorithm Hash digest
SHA256 f34f007ae72bd5c87e91d0014bf09dfd1cb61978f71e8447f072c901d6a7717f
MD5 805d36cc74a624ea2577e2d7ef64c712
BLAKE2b-256 08ac0eba897dc2b267705555845f9b60c6c5ce6a0a75228edea953ed31dc0454

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ak_gpapi-3.0.4-py3-none-any.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for ak_gpapi-3.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b27f66c9349f4d0676bb44a9e19d8847a14cc7a25d002bf64114b6f59910eba9
MD5 fad71e2101f4879a94ac93d59081009f
BLAKE2b-256 dc5922cd1c1b2d450c04c6e82ee4bb30987e99dc2cee452c8e7bd2e92ae3f8ee

See more details on using hashes here.

Supported by

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