Skip to main content

Unofficial python api for google play

Project description

This project contains an unofficial API for google play interactions. The code mainly comes from GooglePlayAPI project which is not maintained anymore. An authentication error was fixed.

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 initializing 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-initializing 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

gpapi2-0.4.5.tar.gz (85.2 kB view details)

Uploaded Source

Built Distribution

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

gpapi2-0.4.5-py3-none-any.whl (84.5 kB view details)

Uploaded Python 3

File details

Details for the file gpapi2-0.4.5.tar.gz.

File metadata

  • Download URL: gpapi2-0.4.5.tar.gz
  • Upload date:
  • Size: 85.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for gpapi2-0.4.5.tar.gz
Algorithm Hash digest
SHA256 16b589ae659f554466b7aea76c3f211d5cb2997904301743fd6729beda21e9c0
MD5 d97bb02c17d65493a1ee3bb46ca9ac2e
BLAKE2b-256 21f0440ea6c082f9c2bf18be8c7f59829590fcd97843a4a5598933c815d21b95

See more details on using hashes here.

File details

Details for the file gpapi2-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: gpapi2-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 84.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for gpapi2-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bad4a8a8fbc944dd6dd61e7b97337b5ee47f5707527c1e023d359e099cd4a7d3
MD5 24fb2028d59cf70bd9cf819167bd9ad8
BLAKE2b-256 8fd7744f3aa01a25ce949e138a4bad235cef4151dbf2a6f616f83d535ba56469

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