title: creating table in python with beautifulsoup
body: <p>New to python here and I have a question about creating a table from a scrape using Beautiful soup. Here is the code I am using:</p>
  
  <pre><code>import requests
  page=requests.get("https://www.opensecrets.org/lobby/lobbyist.php?id=Y0000008510L&amp;year=2018")
  from bs4 import BeautifulSoup
  soup=BeautifulSoup(page.content, 'lxml')
  table=soup.find(‘table’,{‘id’:’lobbyist_summary’})
  for row in table:
      cells=row.find_all(‘a’)
      rn=cells[0].get_text()
  </code></pre>
  
  <p>Error is:</p>
  
  <pre><code>AttributeError: 'NavigableString' object has no attribute 'find_all'
  </code></pre>
  
  <p>print(table) looks like this:</p>
  
  <pre><code>[&lt;a href="firmsum.php?id=D000037635&amp;amp;year=2018"&gt;Ballard Partners&lt;/a&gt;, &lt;a href="clientsum.php?id=F203227&amp;amp;year=2018"&gt;Advanced Roofing Inc&lt;/a&gt;, &lt;a href="clientsum.php?id=F214670&amp;amp;year=2018"&gt;Africell Holding&lt;/a&gt;, &lt;a href="clientsum.php?id=D000023883&amp;amp;year=2018"&gt;Amazon.com&lt;/a&gt;, ...]
  </code></pre>
  
  <p>I would like to (eventually) end up with a table that has each element of interest in a separate column so that it looks like:</p>
  
  <p>[[firmsum,D000037635,2018,Ballard Partners],[clientsum,F203227,2018,Advanced Roofing Inc],[clientsum,F214670,2018,Africell Holding],[clientsum,D000023883, 2018, Amazon.com]...] </p>