soup = BeautifulSoup(
    """<div class="entry">
  <h3 class="foo">
    <a href="http://www.example.com/blog-entry-slug"
    rel="bookmark">Blog Entry</a>
  </h3>
  ...
</div>
"""
    )
soup.find('div', 'entry').find(rel='bookmark').text
Python library to do jQuery-like text extraction?