#!/usr/bin/python
import urllib.request
from bs4 import BeautifulSoup

url = "http://www.usinflationcalculator.com/inflation/historical-inflation-rates/" 
page = urllib.request.urlopen(url).read()

soup = BeautifulSoup(page, "html.parser")

for tr in soup.find_all('tr')[1:]:
     for header in tr.find_all('th'):
      tds = tr.find_all('td')
      print (header.text, tds[0].text, tds[1].text, tds[2].text, tds[3].text, tds[4].text,
             tds[5].text, tds[6].text, tds[7].text, tds[8].text, tds[9].text, tds[10].text, tds[11].text, tds[12].text,)
#!/usr/bin/python
import urllib.request
from bs4 import BeautifulSoup

url = "http://www.usinflationcalculator.com/inflation/historical-inflation-rates/" 
page = urllib.request.urlopen(url).read()

soup = BeautifulSoup(page, "html.parser")

for tr in soup.find_all('tr')[1:]:
     for header in tr.find_all('th'):
      tds = tr.find_all('td')
      print (header.text, tds[0].text, tds[1].text, tds[2].text, tds[3].text, tds[4].text,
             tds[5].text, tds[6].text, tds[7].text, tds[8].text, tds[9].text, tds[10].text, tds[11].text, tds[12].text)

print ("hi")
test push