Re: Parsing HTML

2012-01-28 Thread jondbaker
Thanks, that's good to know. I'm just a few months into using Python (and weeks with Django), hence the familiarity with that one book and not real-world application just yet. On Jan 28, 9:45 am, Masklinn wrote: > On 2012-01-27, at 23:40 , jondbaker wrote: > > > Chapter 8 of Dive Into Python demo

Re: Parsing HTML

2012-01-28 Thread Masklinn
On 2012-01-27, at 23:40 , jondbaker wrote: > Chapter 8 of Dive Into Python demonstrates what you're describing > using sgmllib. > http://www.diveintopython.net/ None of these libraries is very good at parsing "real-world" (broken) HTML though, for that you'd better go with html5lib, lxml.html or

Re: Parsing HTML

2012-01-28 Thread jondbaker
Chapter 8 of Dive Into Python demonstrates what you're describing using sgmllib. http://www.diveintopython.net/ On Jan 27, 3:31 pm, Dennis Lee Bieber wrote: > On Fri, 27 Jan 2012 13:35:42 +0700, ddtopgun wrote: > >i'am new to django and i want to try get the content of HTML. > >can help me how t

Parsing HTML

2012-01-27 Thread ddtopgun
i'am new to django and i want to try get the content of HTML. can help me how to get the content of html. f=urllib.request.urlopen("http://site_name.com";) s=f.read() f.close() but the code is display all code html. i want to just take the contents of tag html. thanks. -- You received this m