Paul - you are very right. I am back to the drawing board. Tess
--
http://mail.python.org/mailman/listinfo/python-list
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
--
http://mail.python.org/mailman/listinfo/python-li
Hello All,
I have a Beautiful Soup question and I'd appreciate any guidance the
forum can provide.
Let's say I have a file that looks at file.html pasted below.
My goal is to extract all elements where the following is true: and .
The lines should be ordered in the same order as they appear in
may be able to provide.
Best,
Tess
file 1:
TABLE
black
blue
red
CHAIR
yellow
black
red
TABLE
white
gray
pink
file 2 (tab separated):
TABLE black bluered
CHAIR yellow black red
TABLE white graypink
--
http://mail.python.org/mailman/listinfo/python-list