複数のURLを処理する方法がわかりません。これは私がこれまでに試したことですが、リストから最後のURLを取得するだけです。
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