I want to extract:
image
div
In my case, it worked like that:
from BeautifulSoup import BeautifulSoup as bs url="http://blabla.com" soup = bs(urllib.urlopen(url)) for link in soup.findAll('a'): print link.string
Hope it helps!