Re: [Tutor] Titles from a web page

2011-05-05 Thread Alan Gauld
"louis leichtnam" wrote I'm trying to write a program that looks in a webpage in find the titles of a subsection of the page: Can you help me out? I tried using regular expression but I keep hitting walls and I don't know what to do... Regular expressions are the wrong tool for parsing H

Re: [Tutor] Titles from a web page

2011-05-04 Thread Michiel Overtoom
On May 5, 2011, at 07:16, James Mills wrote: > On Thu, May 5, 2011 at 1:52 PM, Modulok wrote: >> You might look into the third party module, 'BeautifulSoup'. It's designed to >> help you interrogate markup (even poor markup), extracting nuggets of data >> based >> on various criteria. > > lxml

Re: [Tutor] Titles from a web page

2011-05-04 Thread James Mills
On Thu, May 5, 2011 at 1:52 PM, Modulok wrote: > You might look into the third party module, 'BeautifulSoup'. It's designed to > help you interrogate markup (even poor markup), extracting nuggets of data > based > on various criteria. lxml is also work looking into which provides similar functio

Re: [Tutor] Titles from a web page

2011-05-04 Thread Modulok
You might look into the third party module, 'BeautifulSoup'. It's designed to help you interrogate markup (even poor markup), extracting nuggets of data based on various criteria. -Modulok- On 5/4/11, louis leichtnam wrote: > Hello Everyone, > > I'm trying to write a program that looks in a webp