from BeautifulSoup import BeautifulSoup as Soup
from soupselect import select
import urllib.request, urllib.parse, urllib.error
soup = Soup(urllib.request.urlopen('http://slashdot.org/'))
select(soup, 'div.title h3')
jquery-подобный анализ HTML в Python?