title: Python BeautifulSoup sorting `td` tags by index, [0] and [2] work but not [1]
body: <p>So I'm doing a project with beautifulsoup...I'm indexing table collumns. I'm trying to get the second collumn over; indexing with 0 (the first column) and 2(the third column) works, but 1 gives in IndexError.</p>
  
  <p>Here's the code: </p>
  
  <pre><code>from bs4 import BeautifulSoup
  
  import requests
  
  import sys
  
  r  = requests.get("http://evamsharma.finosus.com/beatles/index.html")
  
  data = r.text
  
  soup = BeautifulSoup(data)
  counter = 0  
  for table in soup.find_all('table'):
      for row in soup.find_all('tr'):
          '''
          try:
              td = row.find_all('td')[0]
          except IndexError:
              continue
          for link in td.find_all(["a","p"]):
              title = str(link.contents)
              title = list(title)
              i = 0
              while i &lt;= 2:
                  del title[0]
                  i += 1
              i = 0
              while i &lt;= 1:
                  del title[-1]
                  i += 1
              title = ''.join(title)
              print(title)
          '''
          try:
              tdyear = row.find_all('td')[1] #This is the faulty index
          except IndexError:
              print("whoops darn!")
              continue
          for link in tdyear.find_all(["a","p"]):
              year = str(link.contents)
              print(year)
              year = list(year)
              year = ''.join(year)
              print(year)
  </code></pre>
  
  <p>The commented out part is known working. On the line with the comment about the faulty index, 0 and 2 return the correct strings, but 1 outputs "whoops darn", the debugging IndexError print statement.</p>
  
  <p>What's going on here? I'm befuddled.</p>
  
  <p>Thanks!</p>
  
  <p>evamvid</p>