From 8e9314e753c2390485c96a56364d69dbc0e4f80c Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Thu, 27 Mar 2014 13:18:55 +0100 Subject: [PATCH] One spider should have it's own folder --- FourmiCrawler/settings.py | 4 ++-- FourmiCrawler/{spiders/Fourmispider.py => spider.py} | 0 FourmiCrawler/spiders/__init__.py | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) rename FourmiCrawler/{spiders/Fourmispider.py => spider.py} (100%) delete mode 100644 FourmiCrawler/spiders/__init__.py diff --git a/FourmiCrawler/settings.py b/FourmiCrawler/settings.py index 0f5eae8..28272d0 100644 --- a/FourmiCrawler/settings.py +++ b/FourmiCrawler/settings.py @@ -8,8 +8,8 @@ BOT_NAME = 'FourmiCrawler' -SPIDER_MODULES = ['FourmiCrawler.spiders'] -NEWSPIDER_MODULE = 'FourmiCrawler.spiders' +SPIDER_MODULES = ['FourmiCrawler'] +NEWSPIDER_MODULE = 'FourmiCrawler' ITEM_PIPELINES = { 'FourmiCrawler.pipelines.FourmiPipeline': 100 } diff --git a/FourmiCrawler/spiders/Fourmispider.py b/FourmiCrawler/spider.py similarity index 100% rename from FourmiCrawler/spiders/Fourmispider.py rename to FourmiCrawler/spider.py diff --git a/FourmiCrawler/spiders/__init__.py b/FourmiCrawler/spiders/__init__.py deleted file mode 100644 index ebd689a..0000000 --- a/FourmiCrawler/spiders/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This package will contain the spiders of your Scrapy project -# -# Please refer to the documentation for information on how to create and manage -# your spiders.