Need help getting BeautifulSoup contents

A

Alexnb

The trick to this one is that the html looks something like this:

<td width="100%" colspan="2">
american,
a href="/browse/blue" linkindex="12" set="yes">blue brick churn cottage
cream "

My question is I want everything inside, the contents of each ad the
regular text of the <td>.
I know I can do like a.contents, but it only gives me the first one, in this
case being "blue". I want the contents of each of those and the regular
contents of the <td>.

P.S. notice the things inbetween the <a tags, I need those too :(

Can anyone help?
 
D

dusans

I dont quite understand what u want. U should paste the html here
http://pastebin.com/ also provide the result that u want.

If u dont take the time to write what u wont, nobody will take the
time to help u
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top