python项目_Scrapy注意点

pipelines

process_item 中打印好item中的数据后,利用raise DropItem(item) 丢弃item
	或者直接 return item 有啥效果
    @classmethod
    def from_crawler(cls,crawler):
        return cls(aaa=crawler.settings.get("MY_MESSAGE"))
     """
     # setting 中的My_MESSAGE
	MY_MESSAGE = "Love you!"
"""

猜你喜欢

转载自blog.csdn.net/sinat_40701582/article/details/105726606
今日推荐