#!/usr/bin/env python3

import urllib.request
import shutil

url = 'https://www.theweathernetwork.com/ca/weather/quebec/montreal/'
# url = 'http://donnees.ville.montreal.qc.ca/dataset/6502942d-788a-43ff-b935-eb7b7d8b58cd/resource/01f91df2-6ed9-47b2-ba85-e6bc9236ac73/download/compteur-eau.csv'
# url = 'https://raw.githubusercontent.com/prust/wikipedia-movie-data/master/movies.json'
# url = 'http://donnees.ville.montreal.qc.ca/dataset/5866f832-676d-4b07-be6a-e99c21eb17e4/resource/2cfa0e06-9be4-49a6-b7f1-ee9f2363a872/download/requetes311.zip'

response = urllib.request.urlopen(url)
out_file = open('output_file', 'wb')

shutil.copyfileobj(response, out_file)

out_file.close()
response.close()

#!/usr/bin/env python3

import urllib.request
import shutil

url = 'https://www.theweathernetwork.com/ca/weather/quebec/montreal/'
# url = 'http://donnees.ville.montreal.qc.ca/dataset/6502942d-788a-43ff-b935-eb7b7d8b58cd/resource/01f91df2-6ed9-47b2-ba85-e6bc9236ac73/download/compteur-eau.csv'
# url = 'https://raw.githubusercontent.com/prust/wikipedia-movie-data/master/movies.json'
# url = 'http://donnees.ville.montreal.qc.ca/dataset/5866f832-676d-4b07-be6a-e99c21eb17e4/resource/2cfa0e06-9be4-49a6-b7f1-ee9f2363a872/download/requetes311.zip'

response = urllib.request.urlopen(url)
out_file = open('output_file', 'wb')

shutil.copyfileobj(response, out_file)

out_file.close()
response.close()

#!/usr/bin/env python3 # url = 'http://donnees.ville.montreal.qc.ca/dataset/6502942d-788a-43ff-b935-eb7b7d8b58cd/resource/01f91df2-6ed9-47b2-ba85-e6bc9236ac73/download/compteur-eau.csv' # url = 'https://raw.githubusercontent.com/prust/wikipedia-movie-data/master/movies.json' # url = 'http://donnees.ville.montreal.qc.ca/dataset/5866f832-676d-4b07-be6a-e99c21eb17e4/resource/2cfa0e06-9be4-49a6-b7f1-ee9f2363a872/download/requetes311.zip'