[Tutor] find data in html file

Kent Johnson kent37 at tds.net
Tue Sep 27 20:16:11 CEST 2005

lmac wrote:
> Hi there,
> i have a base-question. If i want to read some kind of data out of a line
> which i know the start-tag and the end-tag in an html-file how do i 
> recognize
> if it's more than one line ?
> Example:
> <td>Some text<a href>link</a>text ..... DATA ....</tr></td> etc.
> I would use >text as the starting tag to localize the beginning of the DATA.
> And then </tr> as the ending tag of the DATA. But if there is \n then 
> there are more than
> one line.

Beautiful Soup is good for this.


More information about the Tutor mailing list