title: Python issue: TypeError: unhashable type: 'slice' during web scraping
body: <p>I am attempting to scrape some info from a website. I was able to successfully scrape the text that i was looking for, but when I try to create a function to append the texts together, i get a TypeError of an unhashable type. </p>
  
  <p>Do you know what may be happening here? Does anybody know how to fix this issue? </p>
  
  <p>Here is the code in question:</p>
  
  <pre><code>records = []
  for result in results:
      name = result.contents[0][0:-1]
  </code></pre>
  
  <p>and here is the code in entirety, for reproducing purposes:</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  r = requests.get('https://skinsalvationsf.com/2012/08/updated-comedogenic-ingredients-list/')
  soup = BeautifulSoup(r.text, 'html.parser')
  results = soup.find_all('td', attrs={'valign':'top'})
  
  records = []
  for result in results:
      name = result.contents[0][0:-1]
  </code></pre>
  
  <p>A sample of <code>results</code> items:</p>
  
  <pre><code>&lt;td valign="top" width="33%"&gt;Acetylated Lanolin &lt;sup&gt;5&lt;/sup&gt;&lt;/td&gt;,
  &lt;td valign="top" width="33%"&gt;Coconut Butter&lt;sup&gt; 8&lt;/sup&gt;&lt;/td&gt;,
  ...
  &lt;td valign="top" width="33%"&gt;&lt;sup&gt; &lt;/sup&gt;&lt;/td&gt;
  </code></pre>
  
  <p>Thanks in advance!!</p>