minor fix to tutorial

This commit is contained in:
Pablo Hoffman 2009-10-07 20:15:49 -02:00
parent aacb7965b4
commit 37d9e015bb
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ separated values) file using the standard library `csv module`_::
self.csvwriter = csv.writer(open('items.csv', 'wb'))
def process_item(self, domain, item):
self.csvwriter.writerow([item.title[0], item.link[0], item.desc[0]])
self.csvwriter.writerow([item['title'][0], item['link'][0], item['desc'][0]])
return item
.. _csv module: http://docs.python.org/library/csv.html