> Hello, > > I want to extract some image links from different html pages, in > particular i want extract those image tags which height values are > greater than 200. Is there an elegant way in BeautifulSoup to do this?
Yes.
soup.findAll(lambda tag: tag.name=="img" and tag.has_key("height")
and int(tag["height"]) > 200)
--
http://mail.python.org/mailman/listinfo/python-list
