Re: Taking data from a text file to parse html page

2006-08-26 Thread Anthra Norell
Yes! It just occurred to my that this could be the problem. I have to change that. Thanks for the hint. Frederic - Original Message - From: "Georg Brandl" <[EMAIL PROTECTED]> Newsgroups: comp.lang.python To: Sent: Saturday, August 26, 2006 1:59 PM Subject: Re: Taking

Re: Taking data from a text file to parse html page

2006-08-26 Thread Georg Brandl
Anthra Norell wrote: > No, I am not running Linux to any extent. But I am very strict about case. > There is not a single instance of "se.py" or "sel.py" > anywhere on my system. You' ll have to find out where lower case sneaks in on > yours. The zip file preserves case and in the zip file > the

Re: Taking data from a text file to parse html page

2006-08-26 Thread Anthra Norell
ames are upper case. I am baffled. But I believe that an import tripping up on the wrong case can't be a hard nut to crack. Frederic - Original Message - From: "DH" <[EMAIL PROTECTED]> Newsgroups: comp.lang.python To: Sent: Saturday, August 26, 2006 5:47 AM Subject:

Re: Taking data from a text file to parse html page

2006-08-25 Thread DH
> >>> import SE > > That should do it. Let me know if it works. Else just keep asking. > > Frederic > > > - Original Message - > From: "DH" <[EMAIL PROTECTE

Re: Taking data from a text file to parse html page

2006-08-25 Thread Anthra Norell
ython has been an important part of Google since the > > beginning, and remains so as the system grows and evolves. > > ' > > -- Peter Norvig, > > > > If instead of "htm2iso.se" you write ""=" you delete it and your > > outp

Re: Taking data from a text file to parse html page

2006-08-24 Thread DH
> > Python has been an important part of Google since the > beginning, and remains so as the system grows and evolves. > > -- Peter Norvig, > > Your Tag_Stripper also does files: > > >>> print Tag_Stripper ('my_file.htm', 'my_file_without_tags') &

Re: Taking data from a text file to parse html page

2006-08-24 Thread Anthra Norell
gs') 'my_file_without_tags' A stream editor is not a substitute for a parser. It does handle more economically simple translation jobs like this one where a parser does a lot of work which you don't need. Regards Frederic - Original Message - From: "DH"

Re: Taking data from a text file to parse html page

2006-08-24 Thread DH
I found this http://groups.google.com/group/comp.lang.python/browse_thread/thread/d1bda6ebcfb060f9/ad0ac6b1ac8cff51?lnk=gst&q=replace+text+file&rnum=8#ad0ac6b1ac8cff51 Credit Jeremy Moles --- finds = ("{", "}", "(", ")") lines = file("foo.txt", "r").re

Re: Taking data from a text file to parse html page

2006-08-24 Thread Fredrik Lundh
DH wrote: > I have a plain text file containing the html and words that I want > removed(keywords) from the html file, after processing the html file it > would save it as a plain text file. > > So the program would import the keywords, remove them from the html > file and save the html file as

Re: Taking data from a text file to parse html page

2006-08-24 Thread Roberto Bonvallet
DH wrote: >> > I'm trying to strip the html and other useless junk from a html page.. >> > Id like to create something like an automated text editor, where it >> > takes the keywords from a txt file and removes them from the html page >> > (replace the words in the html page with blank space) [...]

Re: Taking data from a text file to parse html page

2006-08-24 Thread DH
Frederic, Good points... I have a plain text file containing the html and words that I want removed(keywords) from the html file, after processing the html file it would save it as a plain text file. So the program would import the keywords, remove them from the html file and save the html file

Re: Taking data from a text file to parse html page

2006-08-24 Thread Larry Bates
DH wrote: > Hi, > > I'm trying to strip the html and other useless junk from a html page.. > Id like to create something like an automated text editor, where it > takes the keywords from a txt file and removes them from the html page > (replace the words in the html page with blank space) I'm new

Re: Taking data from a text file to parse html page

2006-08-23 Thread Anthra Norell
DH, Could you be more specific describing what you have and what you want? You are addressing people, many of whom are good at stripping useless junk once you tell them what 'useless junk' is. Also it helps to post some of you data that you need to process and a sample of the same dat