title: How to scrape all the image url and alt tag within it using scrapy
body: <p>My target is to crawl image url and image alt tag using scrapy . I tried many combinations but still didn't achieve it.</p>
  
  <p>Here is what i tried</p>
  
  <pre><code>  def parse_item(self, response):
      sel = Selector(response)
      item = imageItem()
      item['crawl_time'] = time.asctime( time.localtime(time.time()))
      item['crawl_date'] = time.asctime( time.localtime(time.strftime("%Y%m%d")))
      item['url'] = response.url
      for img in hxs.select('//img'):
       item['title'] = node.xpath("@alt").extract()
       item['iurl'] = node.xpath("@src").extract()
      if response.meta['depth'] == 1:
       exit
      return item
  </code></pre>