From ac8f46ce9e9a424a1eb6411285a718c10af6eabf Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Mon, 31 Aug 2009 21:01:35 -0300 Subject: [PATCH] added File Export Pipeline reference to Exporters doc --- docs/topics/exporters.rst | 6 ++++++ docs/topics/item-pipeline.rst | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/topics/exporters.rst b/docs/topics/exporters.rst index 51c65877e..8198c658c 100644 --- a/docs/topics/exporters.rst +++ b/docs/topics/exporters.rst @@ -17,6 +17,12 @@ different output formats, such as XML, CSV or JSON. Using Item Exporters ==================== +If you are in a hurry, and just want to use an Item Exporter as an :doc:`Item +Pipeline ` see the :ref:`File Export Pipeline +`. Otherwise, if you want to know how Item Exporters +work, or need more custom functionality (not covered by the :ref:`File Export +Pipeline `) continue reading below. + In order to use a Item Exporter, you must instantiate it with its required args. Different exporters require different args, so check each exporter documentation to be sure, in :ref:`topics-exporters-reference`. After you have diff --git a/docs/topics/item-pipeline.rst b/docs/topics/item-pipeline.rst index 566a32652..b8217a8cf 100644 --- a/docs/topics/item-pipeline.rst +++ b/docs/topics/item-pipeline.rst @@ -97,6 +97,8 @@ Built-in Item Pipelines reference Here is a list of item pipelines bundled with Scrapy. +.. _file-export-pipeline: + File Export Pipeline -------------------- @@ -164,7 +166,7 @@ on the respective Item Exporter to get more info. the first line. This format requires you to specify the fields to export using the :setting:`EXPORT_FIELDS` setting. -* ``jsonlines``: uses a :class:`jsonlines.JsonLinesItemExporter` +* ``jsonlines``: uses a :class:`~jsonlines.JsonLinesItemExporter` * ``pickle``: uses a :class:`PickleItemExporter`