From c4ef75cf57183158412d03c0e45c06b1d6e0d8a0 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Sun, 8 Jun 2014 13:00:32 +0200 Subject: [PATCH] Uniform naming of result file --- fourmi.py | 2 +- utils/configurator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fourmi.py b/fourmi.py index 30b5a03..a959091 100755 --- a/fourmi.py +++ b/fourmi.py @@ -17,7 +17,7 @@ Options: --version Show version. --verbose Verbose logging output. --log= Save log to an file. - -o --output= Output file [default: result.*format*] + -o --output= Output file [default: results.*format*] -f --format= Output formats (supported: csv, json, jsonlines, xml) [default: jsonlines] --include= Include only sources that match these regular expressions split by a comma. --exclude= Exclude the sources that match these regular expressions split by a comma. diff --git a/utils/configurator.py b/utils/configurator.py index 380b647..2b458b6 100644 --- a/utils/configurator.py +++ b/utils/configurator.py @@ -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"