from BeautifulSoup import BeautifulSoup
import urllib.request, urllib.error, urllib.parse
url = (
    'http://www.immi.gov.au/skilled/general-skilled-migration/estimated-allocation-times.htm'
    )
page = urllib.request.urlopen(url)
soup = BeautifulSoup(page)
for row in soup.html.body.findAll('tr'):
    data = row.findAll('td')
if data and 'subclass 885online' in data[0].text:
    pass
How to extract certain parts of a web page in Python