mirror of https://github.com/scrapy/scrapy.git
Merge pull request #3445 from jfflisikowski/3097-item-urls-not-defined-in-example
[MRG+1] Updating debug example file (#3097)
This commit is contained in:
commit
06f2db7fd1
|
|
@ -18,11 +18,13 @@ Consider the following scrapy spider below::
|
|||
)
|
||||
|
||||
def parse(self, response):
|
||||
# collect `item_urls`
|
||||
# <processing code not shown>
|
||||
# collect `item_urls`
|
||||
for item_url in item_urls:
|
||||
yield scrapy.Request(item_url, self.parse_item)
|
||||
|
||||
def parse_item(self, response):
|
||||
# <processing code not shown>
|
||||
item = MyItem()
|
||||
# populate `item` fields
|
||||
# and extract item_details_url
|
||||
|
|
|
|||
Loading…
Reference in New Issue