Skip to content

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

recognize jl extension as jsonlines exporter and update docs

Daniel Graña5b2faf61c3b1
diff --git a/docs/faq.rst b/docs/faq.rst
index be20c3e18..47bfede71 100644
--- a/docs/faq.rst
+++ b/docs/faq.rst
@@ -201,15 +201,15 @@ Simplest way to dump all my scraped items into a JSON/CSV/XML file?
To dump into a JSON file::
- scrapy crawl myspider -o items.json -t json
+ scrapy crawl myspider -o items.json
To dump into a CSV file::
- scrapy crawl myspider -o items.csv -t csv
+ scrapy crawl myspider -o items.csv
To dump into a XML file::
- scrapy crawl myspider -o items.xml -t xml
+ scrapy crawl myspider -o items.xml
For more information see :ref:`topics-feed-exports`
diff --git a/docs/intro/overview.rst b/docs/intro/overview.rst
index 6be00a707..02b3992ba 100644
--- a/docs/intro/overview.rst
+++ b/docs/intro/overview.rst
@@ -155,7 +155,7 @@ Run the spider to extract the data
Finally, we'll run the spider to crawl the site and output the file
``scraped_data.json`` with the scraped data in JSON format::
- scrapy crawl mininova -o scraped_data.json -t json
+ scrapy crawl mininova -o scraped_data.json
This uses :ref:`feed exports <topics-feed-exports>` to generate the JSON file.
You can easily change the export format (XML or CSV, for example) or the
diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rst
index 1df7fe366..604596f72 100644
--- a/docs/intro/tutorial.rst
+++ b/docs/intro/tutorial.rst
@@ -426,7 +426,7 @@ Storing the scraped data
The simplest way to store the scraped data is by using the :ref:`Feed exports
<topics-feed-exports>`, with the following command::
- scrapy crawl dmoz -o items.json -t json
+ scrapy crawl dmoz -o items.json
That will generate a ``items.json`` file containing all scraped items,
serialized in `JSON`_.
diff --git a/scrapy/settings/default_settings.py b/scrapy/settings/default_settings.py
index d103b8771..c7e408049 100644
--- a/scrapy/settings/default_settings.py
+++ b/scrapy/settings/default_settings.py
@@ -136,6 +136,7 @@ FEED_EXPORTERS = {}
FEED_EXPORTERS_BASE = {
'json': 'scrapy.contrib.exporter.JsonItemExporter',
'jsonlines': 'scrapy.contrib.exporter.JsonLinesItemExporter',
+ 'jl': 'scrapy.contrib.exporter.JsonLinesItemExporter',
'csv': 'scrapy.contrib.exporter.CsvItemExporter',
'xml': 'scrapy.contrib.exporter.XmlItemExporter',
'marshal': 'scrapy.contrib.exporter.MarshalItemExporter',