title: Scraping a Government Website in Python with Beautiful Soup
body: <p>I am trying to scrape the New Hampshire Secretary of State's website on registered voters. So far I have been able to get the text of the website in Beautiful soup with the following code:</p>
  
  <pre><code>import pandas as pd
  from selenium import webdriver 
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.common.by import By
  from openpyxl import Workbook 
  import getpass
  from urllib.request import urlopen 
  from bs4 import BeautifulSoup
  
  url = urlopen('http://sos.nh.gov/NamesHistory.aspx')
  html = BeautifulSoup(url, 'html.parser')
  html.find('table', attrs={'class':'table-border2-black'}).get_text
  </code></pre>
  
  <p>However, my question is how would I be able to get the text from this table into a usable data frame like the one that appears on the website(<a href="http://sos.nh.gov/NamesHistory.aspx" rel="nofollow noreferrer">http://sos.nh.gov/NamesHistory.aspx</a>)? My question is different because this website is different from previous websites.</p>