Beautiful Soup Looping Extraction Question

Tess testone at gmail.com
Tue Mar 25 01:56:06 CET 2008


Paul - thanks for the input, it's interesting to see how pyparser
handles it.

Anyhow, a simple regex took care of the issue in BS:


for i in soup.findAll(re.compile('^p|^div'),align=re.compile('^center|
^left')):
    print i


Thanks again!

T



More information about the Python-list mailing list