rehmatworks / gplaydl

Command Line Google Play APK downloader. Download APK files to your PC directly from Google Play Store.
MIT License
352 stars 55 forks source link
apk apkdownloader google-play python3

Command Line APK Downloader

Download APK, split APKs, and expansion (OBB) files from Google Play Store to your PC or server directly with minimum effort.

Video Guide

https://www.youtube.com/watch?v=dy6rPpaxj3Q&feature=youtu.be

Brief Instructions

# Install the package
pip3 install --upgrade --force-reinstall gplaydl==1.3.5

# Configure auth
gplaydl configure

# Let's try downloading an app
gplaydl download --packageId com.twitter.android

Detailed Instructions

So the brief instructions didn't get you going? Here is a detailed guide for you. Let's begin with installing the package using PIP3.

pip3 install --upgrade --force-reinstall gplaydl==1.3.5

If gplaydl is already installed on your system, it will be upgraded to the latest version as we are forcing PIP to install from the latest release.

or

git clone https://github.com/rehmatworks/gplaydl.git && \
cd gplaydl && \
python3 setup.py install

Attention: Only Python 3.2.x and up is supported. Please use PIP3, not PIP (if PIP is aliased to Python 2.x PIP)

Configuration

Soon after the package is installed, type the following and hit enter:

gplaydl configure

You will be asked to provide the login info. Provided the following details:

Downloading Apps

Download Twitter using the default device Nexus 6 (api27) [shamu] and store the APK in the current directory:

gplaydl download --packageId com.twitter.android

Download Twitter using the default device Nexus 6 (api27) [shamu] and store the APK in a custom path (i.e. ./apk-downloads/):

gplaydl download --packageId com.twitter.android --path ./apk-downloads/

Download Twitter using another device, i.e. angler (Available Devices)

gplaydl download --packageId com.twitter.android --device angler

Expansion Files:

Since version 1.2.0, expansion files are downloaded as well if available. If you don't want to download those files, set the flag to n:

gplaydl download --packageId com.rayark.Cytus.full --ex n

Split APKs:

Since version 1.3.0, split APK files are downloaded as well if available. If you don't want to download split APKs, set the flag to n:

gplaydl download --packageId com.twitter.android --splits n

Change Google Account:

Your Google login info is stored in a cache file and whenever the tokens expire, login info from the cached file is used to refresh the tokens. If your Google account password is changed, you will be prompted to provided new details whenever you will attempt to download an app.

But if you want to change your Google account for gplaydl, simply reconfigure it and your new account will be set in the cache:

gplaydl configure

Features

Web-based APK Downloader

Aren't comfortable using CLI tools? Use my web-based APK downloader here.

Credits:

gplaydl makes use of the following packages: