with open("summertime_saga_0_20_16.apk", "wb") as file: file.write(response.content)

If you want to automate the download process using a bash script, you can use the following script:

import requests