Permalink
Browse files

Don't use utf-8 encoding

  • Loading branch information...
1 parent 639cf15 commit a71ea01e91793fe3f1c0b4e4fa0a368165631478 @mnagy mnagy committed Jul 12, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 scraper.py
View
@@ -19,9 +19,9 @@
for row in range(1, sheet.nrows):
#writer.writerow([sheet.cell(row, i).value.encode('utf8') for i in cell_idxs])
data = {
- 'obec': sheet.cell(row, 1).value.encode('utf8'),
- 'okres': sheet.cell(row, 2).value.encode('utf8'),
- 'psc': sheet.cell(row, 3).value.encode('utf8'),
- 'kraj': sheet.cell(row, 7).value.encode('utf8'),
+ 'obec': sheet.cell(row, 1).value,
+ 'okres': sheet.cell(row, 2).value,
+ 'psc': sheet.cell(row, 3).value,
+ 'kraj': sheet.cell(row, 7).value,
}
scraperwiki.sqlite.save(unique_keys=['obec'], data=data)

0 comments on commit a71ea01

Please sign in to comment.