Logical fixes to have some "working" case
This commit is contained in:
parent
8175e02f6c
commit
bdcf359da7
@ -10,8 +10,8 @@ from scrapy import log, signals
|
|||||||
from FourmiCrawler.spiders.Fourmispider import FourmiSpider
|
from FourmiCrawler.spiders.Fourmispider import FourmiSpider
|
||||||
from scrapy.utils.project import get_project_settings
|
from scrapy.utils.project import get_project_settings
|
||||||
|
|
||||||
def setup_crawler(compound):
|
def setup_crawler(searchable):
|
||||||
spider = FourmiSpider(domain=domain) # [todo] - Do something smart to get the different spiders to work here.
|
spider = FourmiSpider(compound=searchable) # [todo] - Do something smart to get the different spiders to work here.
|
||||||
settings = get_project_settings()
|
settings = get_project_settings()
|
||||||
crawler = Crawler(settings)
|
crawler = Crawler(settings)
|
||||||
crawler.configure()
|
crawler.configure()
|
||||||
@ -19,7 +19,7 @@ def setup_crawler(compound):
|
|||||||
crawler.start()
|
crawler.start()
|
||||||
|
|
||||||
def start():
|
def start():
|
||||||
setup_crawler(compound)
|
setup_crawler("Methane")
|
||||||
log.start()
|
log.start()
|
||||||
reactor.run()
|
reactor.run()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user