title: How can I limit the characters in one specific table row in a for loop (Python/BeautifulSoup)
body: <p>In the table I'm scraping, the 2nd row is very long and I'd like to simply limit the characters that are in it since I only want the information that is at the beginning of the string. I want to scrape the other rows as they are. So my code is as follows:</p>
  
  <pre><code>table = soup.find(id="table3")
      table_rows = table.findAll('tr')
  
      for tr in table_rows:
          td = tr.findAll('td')
          row = [i.text.strip() for i in td]
          print(row)
  </code></pre>
  
  <p>How can I only target the second row? </p>
  
  <p>The output specifically looks like: </p>
  
  <pre><code>["Computer price for Apple Inc. ,\n\n\nType\nForward\n\n\n\n\n\n\nBack\n\n\n\n\nDie\n\r\n...  
  </code></pre>
  
  <p>So I only want to grap the <code>Computer price for Apple Inc.</code>
  part, maybe there is a better way than just using character limit as a heuristic. Is it possible to specify it to grab everything before <code>,\n\n\n</code></p>