title: How to crawl the url of url in scrapy?
body: <p>main url = 
  [<a href="https://www.amazon.in/s/ref=nb_sb_ss_i_1_8?url=search-alias%3Dcomputers&amp;field-keywords=lenovo+laptop&amp;sprefix=lenovo+m%2Cundefined%2C2740&amp;crid=3L1Q2LMCKALCT]" rel="nofollow noreferrer">https://www.amazon.in/s/ref=nb_sb_ss_i_1_8?url=search-alias%3Dcomputers&amp;field-keywords=lenovo+laptop&amp;sprefix=lenovo+m%2Cundefined%2C2740&amp;crid=3L1Q2LMCKALCT]</a></p>
  
  <p>extracted url from main url = [<a href="http://www.amazon.in/Lenovo-Ideapad-15-6-inch-Integrated-Graphics/dp/B01EN6RA7W?ie=UTF8&amp;keywords=lenovo%20laptop&amp;qid=1479811190&amp;ref_=sr_1_1&amp;s=computers&amp;sr=1-1]" rel="nofollow noreferrer">http://www.amazon.in/Lenovo-Ideapad-15-6-inch-Integrated-Graphics/dp/B01EN6RA7W?ie=UTF8&amp;keywords=lenovo%20laptop&amp;qid=1479811190&amp;ref_=sr_1_1&amp;s=computers&amp;sr=1-1]</a></p>
  
  <pre><code>import scrapy
  from product.items import ProductItem
  from scrapy.linkextractors import LinkExtractor
  from scrapy.spiders import CrawlSpider, Rule
  
  class amazonSpider(scrapy.Spider):
      name = "amazon"
      allowed_domains = ["amazon.in"]
      start_urls = [ main url here]
      def parse(self, response):
          item=ProductItem()
          for  content in response.xpath("sample xpath"):
              url = content.xpath("a/@href").extract()
              request =    scrapy.Request(str(url[0]),callback=self.page2_parse)
          #url is extracted from my main url
              item['product_Rating'] = request
          yield item
      def page2_parse(self,response):
      #here i dint get the response for the second url content
          for content in response.xpath(sample xpath):
              yield content.xpath(sample xpath).extract()
  </code></pre>
  
  <p>Second function is not performing here. Please help me out.</p>