I 'd like to download a lot of apk from google play to PC and install apk on phone for test.
I have seen http://apk-dl.com/ can down apk to pc, so is it possible to do the same thing by using java or python or have some code examples? thanks
Use Google Play Unofficial Python API (github)
Using this API you can download APKs using their package name:
python download.py com.google.android.gm
For finding relevant APKs you can use the search or even parse subcategories
python search.py earth python list.py WEATHER apps_topselling_free