Uniform naming of result file
This commit is contained in:
parent
51239dd342
commit
c4ef75cf57
@ -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.
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user