Makzan / I share what I learnt

A simple Python script to download file in iOS

from urllib.request import urlretrieve

url = input('URL: ')
filename = url.split('/')[-1]
urlretrieve(url, filename)
print("Downloaded file: {}".format(filename))

Published on April 29, 2019. More articles like this: Code Snippets, Productivity, Working on iPad.

Want productive tips and web technologies links like this in your inbox each week? Sign up for weekly dispatch each week. No spam ever. Just useful content: