title: How to scrape text in title attribute using beautiful soup?
body: <p>I am scraping this website using beautiful soup and I need to get the product name completely. 
  When I use the h2 tag, I end up getting names such as "NIVEA Soft Light Moisturizing Cream Berry Blossom Fragrance ...".</p>
  
  <p>I don't want these dots at the end, just the complete name.
  Here is my code snippet for scraping the data:</p>
  
  <pre><code>div_soup=data_soup.findAll('div',{'class':'product-list-box card desktop-cart'})
  
  table_rows=[]
  for div in div_soup:
     current_row=[]
     product_name=div.findAll('h2',{})
     product_price=div.findAll('span',{'class':'post-card__content-price-offer'})
     for idx,data in enumerate(product_name):
         current_row.append(data.text)
     for idx,data in enumerate(product_price):
         current_row.append(data.text)
     table_rows.append(current_row)
  </code></pre>
  
  <p>I can't figure out the appropriate tag to use and also if I should pass something in the dictionary.</p>
  
  <p>URL of the website I am scraping: <a href="https://www.nykaa.com/skin/moisturizers/face-moisturizer-day-cream/c/8394?root=nav_3" rel="nofollow noreferrer">https://www.nykaa.com/skin/moisturizers/face-moisturizer-day-cream/c/8394?root=nav_3</a></p>