Skip to content

iamd0pey/googleplay-api

This branch is 3 commits ahead of Exadra37/googleplay-api:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d43a868 · Apr 10, 2023
May 28, 2022
Apr 10, 2023
Apr 10, 2023
Feb 14, 2023
Apr 10, 2023
Dec 23, 2018
Feb 14, 2023
Oct 9, 2017
May 19, 2019
Apr 10, 2023
Oct 18, 2020
Dec 12, 2018
Apr 10, 2023
Oct 5, 2017
Nov 27, 2019

Repository files navigation

Google play python API

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)

Usage

You can see the usage in the scripts directory.

Build the project

docker build -t googleplay_api .

Run the Project

cd ~/googleplay-api
docker run -it -v ./scripts/:/scripts -v ./config/:/config -v ./info/:/info googleplay_api:latest

I like to have different folders for each purpose so I can change everything dynamically.

  • scripts: That contains scripts
  • config: That contains the configuration for the login
  • info: That contains files that have the output of the scripts

Configs

First create a directory called "config" and then create a file called login.json with the following information

{
	"test_device": {
		"username": "<google_email_account>",
		"password": "<app_password>",
		"deviceName": "<codename_device>",
		"gsfId" : <gsf_id>
	}
}

Password

To create password first add two factor authentication to the google account. Then create a application password in the button below two factor authentication in the google account.

deviceName

There is a list of device names in /gpapi/device.properties, choose one and then add the codename, for "Nexus 5 (api 27)" the code name is "hammerhead"

gsfId

To get this value go to "gpapi"->"device.properties" file. In the case of the deviceName "hammerhead", search for the GSF.version and you will find 12688048.

Other Useful Commands

Docker remove all images

docker rmi -f $(docker images -aq)

Docker remove containers

docker container prune

Docker remove volumes

docker volume prune

Errors

gpapi.googleplay.RequestError: 'Error retrieving information from server. DF-DFERH-01'

  • NoMore201#105
  • It may mean that we need to refresh the gsfid and auth_sub_token by generating another app token in the Google Account under the "securit" tab.
  • "two-factor authentication"->"Apps Passwords"

About

Google Play Unofficial Python API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 95.6%
  • Dockerfile 3.1%
  • Shell 1.3%