def parse_product(self, response):
    if (not isinstance(response, HtmlResponse)):
        return
    hxs = HtmlXPathSelector(response)
    loader = ProductLoader(item=Product(), response=response)
    loader.add_value('url', response.url)
    loader.add_xpath('name', u'//div[@id="product"]/h1/text()')
    loader.add_xpath('price', u'//p[@class="price"]/span[@class="our_price"]/text()')
    if loader.get_output_value('price'):
        (yield loader.load_item())
def parse_product(self, response):
    if (not isinstance(response, HtmlResponse)):
        return
    hxs = HtmlXPathSelector(response)
    loader = ProductLoader(item=Product(), response=response)
    loader.add_value('url', response.url)
    loader.add_xpath('name', u'//div[@id="product"]/h1/text()')
    loader.add_xpath('price', u'//p[@class="price"]/span[@class="our_price"]/text()')
    if loader.get_output_value('price'):
        (yield loader.load_item())