I can't understand how to deal with more than one URL. This is what I've tried so far, but it's only scraping the last URL from the list:
from twill.commands import *
from bs4 import BeautifulSoup
from urllib import urlopen
with open('urls.txt') as inf:
urls = (line.strip() for line in inf)
for url in urls:
line = url
site = urlopen(url)
soup = BeautifulSoup(site)
for td in soup.find_all('td', {'class': 'subjectCell'}):
print td.find('a').text