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!"
"""
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章