from bs4 import SoupStrainer, BeautifulSoup page = BeautifulSoup(openurl(url).read(), parse_only=SoupStrainer('div', id='gs_ab_md'))