Skip to content

Instantly share code, notes, and snippets.

@audiodude
Created October 17, 2013 05:34
Show Gist options
  • Save audiodude/7019583 to your computer and use it in GitHub Desktop.
Save audiodude/7019583 to your computer and use it in GitHub Desktop.
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