import mechanize b = mechanize.Browser() b.open(...) b['city'] = 'San Francisco' b['state'] = 'CA' assert b['voice'] b.submit() import BeautifulSoup soup = BeautifulSoup.BeautifulSoup(b.response()) print soup('a') print soup('a', href=re.compile('.*wav')) b.open(relative link works okay)