title: Scrape ASIN from Amazon's Search page
body: <p>I try to scrape the ASIN numbers on Amazon. Please note that this is not about the product details (like this: <a href="https://www.youtube.com/watch?v=qRVRIh3GZgI" rel="nofollow noreferrer">https://www.youtube.com/watch?v=qRVRIh3GZgI</a>), but this is when you search for a keyword (in this example "trimmer", try this: 
  <a href="https://www.amazon.com/s?k=trimmer&amp;ref=nb_sb_noss_2" rel="nofollow noreferrer">https://www.amazon.com/s?k=trimmer&amp;ref=nb_sb_noss_2</a>). The results are many products, I am able to scrape all the Titles. </p>
  
  <p>What is not visible is the ASIN (which is a unique Amazon number). I saw, while inspecting the HTML a link in the text (href), which is containing the ASIN number. In the example below, the ASIN = B01MSHQ5IQ</p>
  
  <pre><code>&lt;a class="a-link-normal a-text-normal" href="/Philips-Norelco-Groomer-MG3750-50/dp/B01MSHQ5IQ/ref=sr_1_3?keywords=trimmer&amp;amp;qid=1554462204&amp;amp;s=gateway&amp;amp;sr=8-3"&gt;
  </code></pre>
  
  <p>Ending with my question: <strong>How can I retrieve all the Product Titles AND ASIN numbers on the page?</strong> For example: </p>
  
  <pre><code>Number     Title                       ASIN
   1       Braun, Beardtrimmer          B07JH1LLYR 
   2       TNT Pro Series Waist         B00R84J2PK
   ...     ...                          ...
  </code></pre>
  
  <p>So far, I am using scrapy (but also open for other Python solutions) and I am able to scrape the Titles. </p>
  
  <p>My code so far: </p>
  
  <p>First run in the command line: </p>
  
  <pre><code>scrapy startproject tutorial
  </code></pre>
  
  <p>Then, adjust the files in the Spider (see example 1) and items.py (see example 2). </p>
  
  <p>Example 1 </p>
  
  <pre><code>class AmazonProductSpider(scrapy.Spider):
    name = "AmazonDeals"
    allowed_domains = ["amazon.com"]
  
    #Use working product URL below
    start_urls = [
       "https://www.amazon.com/s?k=trimmer&amp;ref=nb_sb_noss_2"         
  
  ]
   ## scrapy crawl AmazonDeals -o Asin_Titles.json
  
    def parse(self, response):
        items = AmazonItem()
  
  
        Title = response.css('.a-text-normal').css('::text').extract()
        items['title_Products'] = Title 
        yield items
  </code></pre>
  
  <p>As requested by @glhr, adding the <strong>items.py</strong> code: </p>
  
  <p>Example 2 </p>
  
  <pre><code># -*- coding: utf-8 -*-
  
  # Define here the models for your scraped items
  #
  # See documentation in:
  # http://doc.scrapy.org/en/latest/topics/items.html
  
  import scrapy
  
  class AmazonItem(scrapy.Item):
    # define the fields for your item here like:
    title_Products = scrapy.Field()
  </code></pre>