Pages

Friday, December 14, 2012

Downloading multiple Android APKs through GooglePlay-Crawler


To date, this is the best code and technique I have seen to download multiple Android apps from Google Play. You can search apps via category (Cricket etc.) and then download all of them in one go, however, maximum limit for downloading apps in one run is 100. You can change the offset and download remaining other apps.

Requirements:

Java
Maven

I will go installation for Maven and Protobuf one by one as Java was already installed on my computer and generally you can find many guides on internet about it.

1) Install JDK and make sure your environment variables are pointing to JDK folder, not to JRE.

My focus is on JDK folder, you should take care of other settings. To be specific, it should point to

C:\Program Files\Java\jdk1.7.0\bin

instead of

C:\Program Files (x86)\Java\jre6\bin

2) Download latest maven from here. I downloaded maven 3.0.4. Extract it to some folder. 

For example, on my computer, it is at 'E:\apache-maven-3.0.4-bin\'. Now add is path to your system variables. 

Go to Control Panel => Systm => Advanced System Settings => Environment Variables.

Under 'System Variables', find 'Path' (Case-insensitive) and click on it. In 'Variable Value', add this text 'E:\apache-maven-3.0.4-bin\apache-maven-3.0.4\bin'. Remember to have ' ; ' before and after this text.


3) Open command window and type 'mvn -version'. It will show information about your current maven installation. That's it for maven. =)

4) Download Googleplay-Crawler from here.(If you are newbie on Github, find 'ZIP' button on the page and click on it. Extract it.

5)  Import this project into Eclipse. If you have not installed Eclipse, you can compile and run it normally through javac commands on command line.

Before running it, you need google username, password and device id.

Type *#*#8255#*#* on your phone and against 'Device Id', you will find 'android-<device id>'. Only <device id> part is your device ID.

Also, your google username and password should be the same which you used on your device as your device id is associated with it.

Now enter this information in 'TestGooglePlay.java' file. You can test your project by running this file. It downloads only one APK as a test, apart from doing other things. If you are a programmer, you know what to do now. =)

Credit: Full credit to Akdeniz for development of this crawler who credits back to  egirault for development of Google Play API.

No comments:

Post a Comment