$ スクレイピー バージョン: 0.14 $
$ ファイル: settings.py $
EXTENSIONS = { 'myproject.extensions.MySQLManager': 500 }
$ファイル:pipeline.py$
# -- coding: utf-8 --
# Define your item pipelines here #
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: doc.scrapy.org/topics/item-pipeline.html
from scrapy.project import extensions
from urlparse import urlparse
import re
class MySQLStorePipeline(object):
def process_item(self, item, spider):
if self.is_allowed_domain(item['url'], spider) is True:
MySQLManager.cursor... #cannot load MySQLManager
ImportError: 名前拡張子をインポートできません。/scrapy/project.py に拡張クラスが見つかりません