def get_apk_from_download_link(app_info_json_path):
    cur_dir=os.getcwd()
    apk_dir=os.path.join(cur_dir, 'apk')
    if not os.path.exists(apk_dir):
        os.mkdir(apk_dir)
    app_info_json_path=os.path.join(cur_dir, 'app/app_info.json')
    with open(app_info_json_path, 'r') as inputfile:
        app_info=json.load(inputfile)
        for app in app_info:
            app_name=app['app_name']
            download_link=app['download_link']
            category=app['category']
            category_dir=os.path.join(apk_dir, category)
            if not os.path.exists(category_dir):
                os.mkdir(category_dir)
            app_apk_dir=os.path.join(category_dir, app_name)+'.apk'
            resp = requests.get(download_link)
            with open(app_apk_dir, 'wb') as fh:
                data = resp.content
                fh.write(data)