Skip to main content

GPlayCli, a Google play downloader command line interface

Project description

gplaycli Python package Debian package

GPlayCli is a command line tool to search, install, update Android applications from the Google Play Store.

$ usage: gplaycli [-h] [-V] [-v] [-s SEARCH] [-d AppID [AppID ...]] [-y] [-l FOLDER] [-P] [-av] [-a] [-F FILE]
            [-u FOLDER] [-f FOLDER] [-dc DEVICE_CODENAME] [-t] [-tu TOKEN_URL] [-ts TOKEN_STR] [-g GSF_ID]
            [-c CONF_FILE] [-p] [-L]

A Google Play Store Apk downloader and manager for command line

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         Print version number and exit
  -v, --verbose         Be verbose
  -s SEARCH, --search SEARCH
                        Search the given string in Google Play Store
  -d AppID [AppID ...], --download AppID [AppID ...]
                        Download the Apps that map given AppIDs
  -y, --yes             Say yes to all prompted questions
  -l FOLDER, --list FOLDER
                        List APKS in the given folder, with details
  -P, --paid            Also search for paid apps
  -av, --append-version
                        Append versionstring to APKs when downloading
  -a, --additional-files
                        Enable the download of additional files
  -F FILE, --file FILE  Load packages to download from file, one package per line
  -u FOLDER, --update FOLDER
                        Update all APKs in a given folder
  -f FOLDER, --folder FOLDER
                        Where to put the downloaded Apks, only for -d command
  -dc DEVICE_CODENAME, --device-codename DEVICE_CODENAME
                        The device codename to fake
  -t, --token           Instead of classical credentials, use the tokenize version
  -tu TOKEN_URL, --token-url TOKEN_URL
                        Use the given tokendispenser URL to retrieve a token
  -ts TOKEN_STR, --token-str TOKEN_STR
                        Supply token string by yourself, need to supply GSF_ID at the same time
  -g GSF_ID, --gsfid GSF_ID
                        Supply GSF_ID by yourself, need to supply token string at the same time
  -c CONF_FILE, --config CONF_FILE
                        Use a different config file than gplaycli.conf
  -p, --progress        Prompt a progress bar while downloading packages
  -L, --log             Enable logging of apps status in separate logging files

Credentials

Warning

Token authentication is currently out of order since the default token dispenser instance has probably been blacklisted from Google servers.

By default, gplaycli fetches a token from a token dispenser server located at https://matlink.fr/token/email/gsfid to login in Google Play. If you want to use another token dispenser server, change its URL in the configuration file (depends on the way you installed it). If you want to use your own Google credentials, put

token=False

in the config file and type in your credentials in

gmail_address=
gmail_password=

variables.

Changelog

See https://github.com/matlink/gplaycli/releases for releases and changelogs

Installation

Pip

  • Best way to install it is using pip3: pip3 install gplaycli or pip3 install gplaycli --user if you are non-root
  • Cleanest way is using virtualenv: virtualenv gplaycli; cd gplaycli; source bin/activate, then either pip3 install gplaycli or git clone https://github.com/matlink/gplaycli && pip3 install ./gplaycli/. Make sure virtualenv is initialized with Python 3. If it's not, use virtualenv -p python3.

Debian installation

Releases are available here https://github.com/matlink/gplaycli/releases/ as debian packages. Or click this link for automated builds Debian package. If you prefer not to use debian packaging, check the following method.

Requirements

Works on GNU/Linux or Windows with pip and Python 3. First of all, ensure these packages are installed on your system :

  • python3-dev package -> apt-get install python3-dev
  • libffi package -> apt-get install libffi-dev
  • libssl-dev -> apt-get install libssl-dev (for pypi's cryptography compilation)
  • python (>=3)

Then, you need to install it with some needed libraries using either pip3 install gplaycli or python3 setup.py install after cloning it, then it will be available with gplaycli command. If you don't want to install it, only install requirements with pip3 install -r requirements.txt and use it as it.

If you want to use your own Google credentials, simply change them in the gplaycli.conf file with your own settings.

If you plan to use it with F-Droid-server, remember that fdroidserver needs Java (more precisely the 'jar' command) to work.

Uninstall

Use pip uninstall gplaycli, and remove conf with rm -rf /etc/gplaycli. Should be clean, except python dependencies for gplaycli.

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

gplaycli-3.29.tar.gz (11.9 kB view details)

Uploaded Source

File details

Details for the file gplaycli-3.29.tar.gz.

File metadata

  • Download URL: gplaycli-3.29.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for gplaycli-3.29.tar.gz
Algorithm Hash digest
SHA256 4a479292e4b03403d0bce6fac3ee2e86b364250706cf44e7887d58ea0b7316ad
MD5 185a711d4546aea8ac4c414b757c4913
BLAKE2b-256 a8a6a3e5a3a4a2351a3e377bc1c5f832fd12b19b7cbc11eabd2967cd66d307b0

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