title: How to obtain title attribute using python and beautifulsoup?
body: <p>Assume the following:</p>
  
  <pre><code>&lt;td title="I want this title" role="gridcell"&gt;&lt;a onclick="open" href="#"&gt;TEXT&lt;/a&gt;&lt;/td&gt;
  </code></pre>
  
  <p>Now, I've successfully found respectively the table and individual rows using:</p>
  
  <pre><code>for rows in soup.find_all(['tr']):
      for cells in rows.find_all(['td']):
  </code></pre>
  
  <p>By printing <code>cells</code> I can see I've found the correct rows, but I'm really not sure how to take the title attribute and save it as a string? I've attempted to use <code>temp = soup.find('td')['title']</code>, but I'm getting errors doing this, so evidently I'm doing something wrong.</p>
  
  <p>Any suggestions would be much appreciated!</p>