Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. medreda

    [html2text] what does it mean sys.stdout in this code snippet

    thanks a lot mikrom you are really ver yexperienced in python
  2. medreda

    [html2text] what does it mean sys.stdout in this code snippet

    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...
  3. medreda

    Striping html Tags

    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.
  4. medreda

    Striping html Tags

    yes i saw it, i can run with python 2.5 and not with python 2.6
  5. medreda

    Striping html Tags

    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...
  6. medreda

    Striping html Tags

    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...
  7. medreda

    Striping html Tags

    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...
  8. medreda

    Striping html Tags

    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...
  9. medreda

    Striping html Tags

    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.
  10. medreda

    Striping html Tags

    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...

Part and Inventory Search

Back
Top