Justin,
Wow! I thought there might be a 'simple' way! thanks so much, you've given
me a lot to chew on.
Jon
__
J.J. Crump
Dept. of History 353560
University of Washington
Seattle, WA. 98195
On Wed, 11 Apr 2007, Justin Ezequiel wrote:
> On Apr 12, 4:15 am, Jon Crump <[EMAIL PROTECTED]>
On Apr 12, 4:15 am, Jon Crump <[EMAIL PROTECTED]> wrote:
> Is it possible to feed findAll() a list of tags WITH attributes?
>>> BeautifulSoup.__version__
'3.0.3'
>>> s = '''\nboo\nhello\n>> a="bar">boo\nhi\n'''
>>> soup = BeautifulSoup.BeautifulSoup(s)
>>> def func(tag):
... if tag.name not i
Hello world,
Is it possible to feed findAll() a list of tags WITH attributes? This
psuedocode obviously doesn't work, but it reflects what I want to do:
soup.findAll([('td', {'class':'foobar'}), ('li', {'class':'baz'}), ('a',
{'name' : re.compile('^it.*$')})])
Any clues, examples, or suggestio