Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

minor fix to tutorial

Pablo Hoffman37d9e015bb08
diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rst
index 5f30cc911..b5934fa0f 100644
--- a/docs/intro/tutorial.rst
+++ b/docs/intro/tutorial.rst
@@ -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