Re: [Tutor] extract hosts from html write to file

2007-09-11 Thread Kent Johnson
sacha rook wrote: > Hi I wonder if anyone can help with the following > > I am trying to read a html page extract only fully qualified hostnames > from the page and output these hostnames to a file on disk to be used > later as input to another program. I would use BeautifulSoup to parse out t

Re: [Tutor] extract hosts from html write to file

2007-09-11 Thread Eric Brunson
sacha rook wrote: > Hi I wonder if anyone can help with the following > > I am trying to read a html page extract only fully qualified hostnames > from the page and output these hostnames to a file on disk to be used > later as input to another program. > > I have this so far > > import url

[Tutor] extract hosts from html write to file

2007-09-11 Thread sacha rook
Hi I wonder if anyone can help with the following I am trying to read a html page extract only fully qualified hostnames from the page and output these hostnames to a file on disk to be used later as input to another program. I have this so far import urllib2f=open("c:/tmp/newfile.txt", "w"