title: Having some difficulty finding out how to detect <a href> in Python
body: <pre><code>from bs4 import BeautifulSoup
  import requests
  
  page = requests.get('https://www.capitol.tn.gov/house/members/').text
  soup = BeautifulSoup(page, 'html.parser')
  
  table = soup.find('table')
  rows = table.find_all('tr')
  header = rows[0].find_all('th')
  header_text = []
  
  for item in header:
    header_text.append(item.get_text(strip=True))
    
  # check header results
  print(header_text)
  
  # get rows
  for row in rows:
    row_text = []
    a = row.find_all('a')
    td = row.find_all('td')
    for item in td:
      if item:
        row_text.append(item.get_text(strip=True))
      
    # check row results
    if len(row_text) &gt; 0:
      print(row_text)
  </code></pre>
  <p>I'm sorry if this is a stupid question, but I'm having a bit of trouble coming up with how to get the 'a's or 'hrefs' (aka the emails) to actually appear as the first item in the row. For starters, I've tried the insert() method, but it never actually gives me anything.</p>