diff --git a/crawler.py b/crawler.py index 2992760..4362f81 100644 --- a/crawler.py +++ b/crawler.py @@ -26,7 +26,7 @@ urllib.request.urlretrieve(base_url + href, xlsFilename) workbook = xlrd.open_workbook(xlsFilename) worksheet = workbook.sheet_by_index(0) - csvFile = open(csvFilename, 'w', newline='') + csvFile = open(csvFilename, 'w', newline='', encoding='utf-8') writer = csv.writer(csvFile, quoting=csv.QUOTE_ALL) for rownum in range(worksheet.nrows):