Hello again,
the html2text library really helped me and i want to understand every instruction of it, so the problem is
i really does not understand what is the goal of using sys.stdout in this code snippet.
and could i get rid of it
import sys, urllib
from StringIO import StringIO
import...
thank you
every time you give me a clue.
the problem was with the WingIDE (i don't know if you heard about it), when i execute the script simply (with notepad ++)
it works good.
i appreciate all the help that you have provided me, i can get through python without any scares now.
i have tested this last one it was a master piece too.
but when puting all the code in another PC and executing the it, i got this stupid error :
AttributeError: 'module' object has no...
i tested the code that i have told you many times it worked every time, so i have added something useful to your code lol.
i want to ask you a last question:
when saving the result to text file it displays it for example like this:
[36]: modules.php?name=Top
[37]: modules.php?name=Surveys
So...
thanks mikrom.
i mean to transform a non coded UTF-8 page to UTF-8 then apply directly this geat piece of code .
i've made a litte search and found that is possible with BeautifulSoup
so i add this code first to transform the content of the web page into utf-8 :
def...
thanks a lot mikrom
the code worked very good when i've changed the IDE. so it was a problem of indentation because i was using IDLE.
i'd like to say too that this piece of code works only with web sites that are coded in UTF-8.
could you give me a clue about how to make it workful with non...
thanks a lot for this quick response
i have installed and imported the html2text properly.
also i've tested the example on a web site that's encoded by UTF-8 (the same web site in the example) but nothing happened too.
could you explain more or make some comments on the source code.
Thanks again.
thread278-1604666
Hello every body.
it is really the best programming forum i've ever seen.
i've just took a look a this topic:
http://www.tek-tips.com/viewthread.cfm?qid=1604666&page=1
i want to strip html tags from a web site so i've just simply copied the code and changed the url, but...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.