Hi, With stripogram Its working fine. Thanks a lot. :) !!
But couldnt understand the reason behind the previous html2text malfunction for that particular (index1.htm) link.??! On Sun, Apr 17, 2011 at 10:28 PM, JAGANADH G <jagana...@gmail.com> wrote: > >> > Hi > Do the following things > > install the python librarry "stripogram" (easy_install stripogram) > > Then insted of html2text import do > from stripogram import html2text > > Change mainfile.write(fetch.read()) --> > mainfile.write(html2text(fetch.read())) > > comment the line os.system('python2.6 html2text.py main.html > main.txt') > > Also you can use the *re* module in Python to find the index , so that you > can avoid using popen and grep too > > -- > ********************************** > JAGANADH G > http://jaganadhg.freeflux.net/blog > *ILUGCBE* > http://ilugcbe.techstud.org > > _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers