Archived
1
0

Uniform naming of result file

This commit is contained in:
Jip J. Dekker 2014-06-08 13:00:32 +02:00
parent 51239dd342
commit c4ef75cf57
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ Options:
--version Show version.
--verbose Verbose logging output.
--log=<file> Save log to an file.
-o <file> --output=<file> Output file [default: result.*format*]
-o <file> --output=<file> Output file [default: results.*format*]
-f <format> --format=<format> Output formats (supported: csv, json, jsonlines, xml) [default: jsonlines]
--include=<regex> Include only sources that match these regular expressions split by a comma.
--exclude=<regex> Exclude the sources that match these regular expressions split by a comma.

View File

@ -20,7 +20,7 @@ class Configurator:
:param fileformat: The format in which the output will be.
"""
if filename != 'result.*format*':
if filename != 'results.*format*':
self.scrapy_settings.overrides["FEED_URI"] = fileformat
elif fileformat == "jsonlines":
self.scrapy_settings.overrides["FEED_URI"] = "results.json"