Created
October 17, 2013 05:34
-
-
Save audiodude/7019583 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def parse(self, response): | |
hxs = HtmlXPathSelector(response) | |
for review in hxs.select('//div[contains(@class, "review-container")]'): | |
item = ReviewItem() | |
item['name'] = review.select('./span[contains(@class, "name")]/text()').extract()[0] | |
yield item |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment