📜  来自 spider 的 scrapy spider shell - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:38.185000             🧑  作者: Mango

代码示例1
from scrapy.shell import inspect_response

def parse_details(self, response, item=None):
    if item:
        # populate more `item` fields
        return item
    else:
        inspect_response(response, self)