title: "TypeError: string indices must be integers" error when I try to parse HTML page with BeautifulSoup
body: <p>I need to parse price list which is in "span" tags with "class". Numbers has a specific setting (2 400 p) so I also need to remove spaces and "p" letter.
  This is my code below:</p>
  
  <pre class="lang-py prettyprint-override"><code>from bs4 import BeautifulSoup
  soup = BeautifulSoup(open("1.html"))
  for link in soup.findAll("span", { "class" : "b-sbutton mod_price skin_product size_normal scheme_available" }):
  links = link.get_text()
  print(links)
  links_len = len(links)
  int(links_len)
  for links_len in links:
      a = links[links_len]
      a.replace(' ', '')
      a.replace('р', '')
  print(links)
  </code></pre>
  
  <p>But when I try to run the script there is an error</p>
  
  <pre class="lang-py prettyprint-override"><code>Traceback (most recent call last):
    File "get_data.py", line 9, in &lt;module&gt;
      a = links[links_len]
  TypeError: string indices must be integers
  </code></pre>
  
  <p>What am I missing here?</p>