I'm trying to retrieve CSV data from a website through this link.
When downloaded manually you get synop.201708.csv.gz
which is in fact a csv wrongly named .gz, it weights 2233KB
When running this code :
import urllib
file_date = '201708'
file_url = "https://donneespubliques.meteofrance.fr/donnees_libres/Txt/Synop/Archive/synop.{}.csv.gz".format(file_date)
output_file_name = "{}.csv.gz".format(file_date)
print "downloading {} to {}".format(file_url, output_file_name)
urllib.urlretrieve (file_url, output_file_name)
I'm getting a corrupted ~361Kb file
Any ideas why?