From e272c9f3425d42446abd1f428448edc944f22319 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Sun, 1 Jun 2014 19:55:10 +0200 Subject: [PATCH] Changed a parameter name for clarification --- fourmi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fourmi.py b/fourmi.py index c09087d..9f32cff 100755 --- a/fourmi.py +++ b/fourmi.py @@ -33,15 +33,15 @@ from FourmiCrawler.spider import FourmiSpider from sourceloader import SourceLoader -def setup_crawler(searchable, settings, source_loader, attributes): +def setup_crawler(compound, settings, source_loader, attributes): """ This function prepares and start the crawler which starts the actual search on the internet - :param searchable: The compound which should be searched + :param compound: The compound which should be searched :param settings: A scrapy settings object :param source_loader: A fully functional SourceLoader object which contains only the sources that should be used. :param attributes: A list of regular expressions which the attribute names should match. """ - spider = FourmiSpider(compound=searchable, selected_attributes=attributes) + spider = FourmiSpider(compound=compound, selected_attributes=attributes) spider.add_parsers(source_loader.sources) crawler = Crawler(settings) crawler.signals.connect(reactor.stop, signal=signals.spider_closed)