Skip to content

Commit 38040ef

Browse files
committed
Moved writer.writeRow outside of the "each cell" loop
1 parent 8fab873 commit 38040ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter5/3-scrapeCsv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
csvRow = []
1616
for cell in row.findAll(['td', 'th']):
1717
csvRow.append(cell.get_text())
18-
writer.writerow(csvRow)
18+
writer.writerow(csvRow)
1919
finally:
2020
csvFile.close()

0 commit comments

Comments
 (0)