Updated 3 years ago
import os
os.getcwd()
'/home/jovyan'
os.makedirs("./data",exist_ok=True)
'data' in os.listdir(".")
True
url1 = 'https://gist.githubusercontent.com/aakashns/257f6e6c8719c17d0e498ea287d1a386/raw/7def9ef4234ddf0bc82f855ad67dac8b971852ef/loans1.txt'
url2 = 'https://gist.githubusercontent.com/aakashns/257f6e6c8719c17d0e498ea287d1a386/raw/7def9ef4234ddf0bc82f855ad67dac8b971852ef/loans2.txt'
url3 = 'https://gist.githubusercontent.com/aakashns/257f6e6c8719c17d0e498ea287d1a386/raw/7def9ef4234ddf0bc82f855ad67dac8b971852ef/loans3.txt'
import urllib
urllib.request.urlretrieve(url1,'./data/lone1.txt')
('./data/lone1.txt', <http.client.HTTPMessage at 0x7f1e4445b340>)