We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f58c67a + f3ea346 commit 75c4c71Copy full SHA for 75c4c71
chapter5/3-scrapeCsv.py
@@ -8,7 +8,7 @@
8
table = bsObj.findAll("table",{"class":"wikitable"})[0]
9
rows = table.findAll("tr")
10
11
-csvFile = open("files/editors.csv", 'wt')
+csvFile = open("files/editors.csv", 'wt', newline='', encoding='utf-8')
12
writer = csv.writer(csvFile)
13
try:
14
for row in rows:
0 commit comments