Git Product home page Git Product logo

gplaycli's Introduction

gplaycli Build Status (Python3 migration : Build Status)

Google Play Downloader via Command line, based on https://framagit.org/tuxicoman/googleplaydownloader See package Readme for python modules to install.

GPlayCli is a command line tool to search, install, update Android applications from the Google Play Store. The main goal was to be able to run this script with a cronjob, in order to automatically update an F-Droid server instance.

$ ./gplaycli.py 
usage: gplaycli.py [-h] [-y] [-s SEARCH] [-n NUMBER] [-d AppID [AppID ...]]
                [-u FOLDER] [-f FOLDER] [-v] [-c CONF_FILE] [-p]

	A Google Play Store Apk downloader and manager for command line

	optional arguments:
	  -h, --help            show this help message and exit
	  -y, --yes             Say yes to all prompted questions
	  -s SEARCH, --search SEARCH
	                        Search the given string in Google Play Store
	  -n NUMBER, --number NUMBER
	                        For the search option, returns the given number of
	                        matching applications
	  -d AppID [AppID ...], --download AppID [AppID ...]
	                        Download the Apps that map given AppIDs
	  -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
	  -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
	  -v, --verbose         Be verbose
	  -c CONF_FILE, --config CONF_FILE
	                        Use a different config file than credentials.conf
	  -p, --progress        Prompt a progress bar while downloading packages
	  -ic, --install-cronjob
            		        Interactively install cronjob for regular APKs update

Keep in mind that GPlayCli is not able to download apps that are not gratis, costless.

Changelog

  • A new way for authentication has been added to GPlayCli: the tokens. I've set up a token-dispenser server (https://github.com/yeriomin/token-dispenser) at this address : https://token.matlink.fr/token/email/[email protected] . The settings has been added to credenttials.conf, and by default GPlayCli will retrieve token from this URL. If you want to keep using your credentials, set token=False in credentials.conf. You can also change the URL and setup your own token-dispenser server and then changing the token_url in the credentials.conf.

Debian installation

Releases are available here https://github.com/matlink/gplaycli/releases/ as debian packages. If you prefer not to use debian packaging, check the following method.

Requirements

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

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

Then, you need to install it with some needed libraries using either pip install gplaycli or python 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 pip install -r requirements.txt and use it as it.

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

If you want to generate androidID, see https://github.com/nviennot/android-checkin/ or https://github.com/Akdeniz/google-play-crawler, otherwise you could either use the given one (default) or use one of your devices ID.

Currently looking for a solution (googleplaydownloader from Tuxicoman provides a working jar).

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 and cronjob with rm -rf /etc/gplaycli /etc/cron.daily/gplaycli. Should be clean, except python dependancies for gplaycli.

gplaycli's People

Contributors

matlink avatar raphael0202 avatar damiencassou avatar phoenix09 avatar

Watchers

James Cloos avatar Jian Xu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.