Text over multiple lines

Rigga Rigga at hasnomail.com
Sun Jun 20 09:01:28 EDT 2004


On Sun, 20 Jun 2004 21:03:34 +1000, Nigel Rowe wrote:

> Rigga wrote:
> 
>> Hi,
>> 
>> I am using the HTMLParser to parse a web page, part of the routine I need
>> to write (I am new to Python) involves looking for a particular tag and
>> once I know the start and the end of the tag then to assign all the data
>> in between the tags to a variable, this is easy if the tag starts and ends
>> on the same line however how would I go about doing it if its split over
>> two or more lines?
>> 
>> Thanks
>> 
>> R
> 
> Don't re-invent the wheel,
> http://www.crummy.com/software/BeautifulSoup/
I want to do it manually as it will help with my understanding of Python,
any ideas how I go about it?




More information about the Python-list mailing list