I'm sure this is fairly easy to do, but the things I've been able to
find all seem to discuss the issue in generalities, without providing
specific examples. Given my low level of proficiency with Python, I'm
feeling a little lost.
All I'm trying to do is to pull multiple items off of a page. Each
page that I use my "callback='parse_item'" rule on actually has
several items. But I only know how to write the parse_item function
where it returns a single item at the end. How would I get multiple
items parsed? Do I set my rule to call a new function called
'parse_page' and then have parse_page loop through the items calling
pare_item each time?
Here's a simplified version of my code. It grabs a single product name
from the first xpath that matches my selector. What I want to be able
to do is grab all of the product names, and create a new item for each
one.
http://dpaste.org/T9zA/
Any help greatly appreciated! :)