From d9c27b5bacc00fd5f0c6012c47688d5ff1722a29 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 20 Aug 2019 12:40:12 +0200 Subject: Always stop after crawl --- commcrawler/scrapy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commcrawler/scrapy.py b/commcrawler/scrapy.py index 6af1c0b..e69268b 100644 --- a/commcrawler/scrapy.py +++ b/commcrawler/scrapy.py @@ -432,7 +432,8 @@ def launch_crawl(crawl_item, excluded_domains=None): ) ) if has_url_to_process: - process.start(stop_after_crawl=ONLY_FIRST_PAGE) + # process.start(stop_after_crawl=ONLY_FIRST_PAGE) + process.start() page += 1 crawl_item.crawl_ended = timezone.now() if ONLY_FIRST_PAGE and page <= page_number: -- cgit v1.2.3