Beautiful Soup Question: Filtering Images based on their width and height attributes

Chris Mellon arkanes at gmail.com
Thu Nov 30 22:34:14 CET 2006


On 30 Nov 2006 12:43:45 -0800, PicURLPy <fbuchinger at gmail.com> wrote:
> 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?
>

Most image tags "in the wild" don't have height attributes, you have
to download the image to see what size it is.

> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list