Beautiful Soup Looping Extraction Question

Tess testone at gmail.com
Mon Mar 24 20:56:06 EDT 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