Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

scrapy spider shell from spider

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)
Source by docs.scrapy.org #
 
PREVIOUS NEXT
Tagged: #scrapy #spider #shell #spider
ADD COMMENT
Topic
Name
8+4 =