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.0.tar.gz (63.6 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.0-py3-none-any.whl (63.3 kB view details)

Uploaded Python 3

File details

Details for the file ak-gpapi-3.0.0.tar.gz.

File metadata

  • Download URL: ak-gpapi-3.0.0.tar.gz
  • Upload date:
  • Size: 63.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for ak-gpapi-3.0.0.tar.gz
Algorithm Hash digest
SHA256 4d6c908c4078a18493ed0d18f83fa22d5e874fc2976894b946ed920b59c854fb
MD5 eb8d94bae31d92a7c84c2511558e0532
BLAKE2b-256 a0484841a06d14cb8473e9fff4142079a13bbbfd893b1328ef10e1d34695ab75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ak_gpapi-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 63.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for ak_gpapi-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c1b210f5ad0bab52b46a1afe95c4bb8d91d891b4d256b4face788b132fc4742
MD5 517b23b96f3a405a24dfc4ed1032e038
BLAKE2b-256 f9cb859820805f913847c1b3e3def5cc79f33391d35c818a797d8a53d67fcc7d

See more details on using hashes here.

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