Re: regarding html source code

2008-02-11 Thread subeen
Another way: import urllib2 usock = urllib2.urlopen('http://abc.com') data = usock.read() usock.close() print data On Feb 12, 12:05 am, Stefan Behnel <[EMAIL PROTECTED]> wrote: > Hi, > > shashank jain top-posted: > > > > > On Feb 11, 2008 11:15 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote: >

Re: regarding html source code

2008-02-11 Thread Stefan Behnel
Hi, shashank jain top-posted: > On Feb 11, 2008 11:15 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote: > >> jainshasha wrote: >>> well i have create a program which can read out the html source code >>> files or any other web page source code files through my program so >> Like this? >> >> >>> from

Re: regarding html source code

2008-02-11 Thread Stefan Behnel
jainshasha wrote: > well i have create a program which can read out the html source code > files or any other web page source code files through my program so Like this? >>> from lxml import html >>> page = html.parse("http://www.google.com";) >>> print page.find("//title").text Google h