import wget site_url = 'http://www.randomdatabase.com/database_files/csv/main_database.csv' file_name = wget.download(site_url) print(file_name)