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.

Sign up for weekly dispatch each week.

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

Read previous weekly dispatch newsletters.