Re: Beautiful Soup Looping Extraction Question

2008-03-25 Thread Tess
Paul - you are very right. I am back to the drawing board. Tess -- http://mail.python.org/mailman/listinfo/python-list

Re: Beautiful Soup Looping Extraction Question

2008-03-24 Thread Tess
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

Beautiful Soup Looping Extraction Question

2008-03-24 Thread Tess
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

Data Manipulation - Rows to Columns

2008-02-05 Thread Tess
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