html renderer

Discussion in 'Python' started by Michele Simionato, Nov 16, 2003.

  1. I am looking for a textual html renderer (such as lynx) to be
    called from a Python program. The only needed functionality is
    the following: passing to it a string it should show the html file at
    the first match of the string (it does not seem obvious to do it with
    lynx, please correct me if I am wrong). Essentially, I want to be able to
    to browse rapidly over a bunch of html files. Fancy graphics is not
    important, easy of use is very important. Portable solutions are
    better, but a Linux only solution would be good enough.

    Any pointer?

    TIA,

    Michele
     
    Michele Simionato, Nov 16, 2003
    #1
    1. Advertising

  2. Am Sun, 16 Nov 2003 06:10:04 -0800 schrieb Michele Simionato:

    > I am looking for a textual html renderer (such as lynx) to be
    > called from a Python program. The only needed functionality is
    > the following: passing to it a string it should show the html file at
    > the first match of the string (it does not seem obvious to do it with
    > lynx, please correct me if I am wrong). Essentially, I want to be able to
    > to browse rapidly over a bunch of html files. Fancy graphics is not
    > important, easy of use is very important. Portable solutions are
    > better, but a Linux only solution would be good enough.


    Hi,

    may be this helps:

    # untested
    fd=os.popen("lynx -dump foo.html")
    content=fd.read()
    fd.close()
    idx=content.find("yourtext")
    print content[idx-20:idx+20]

    thomas
     
    Thomas Guettler, Nov 17, 2003
    #2
    1. Advertising

  3. Michele Simionato

    John J. Lee Guest

    (Michele Simionato) writes:

    > I am looking for a textual html renderer (such as lynx) to be

    [...]
    > important, easy of use is very important. Portable solutions are
    > better, but a Linux only solution would be good enough.


    Just a note, since people seem to assume otherwise: lynx is
    cross-platform :)


    John
     
    John J. Lee, Nov 17, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Xiaolei Li

    Looking for HTML Renderer

    Xiaolei Li, Oct 6, 2004, in forum: Java
    Replies:
    7
    Views:
    546
    Xiaolei Li
    Oct 7, 2004
  2. unbending
    Replies:
    0
    Views:
    358
    unbending
    Dec 17, 2004
  3. Robert kebernet Cooper

    html renderer

    Robert kebernet Cooper, Jun 27, 2005, in forum: Java
    Replies:
    2
    Views:
    2,306
    Roedy Green
    Jun 28, 2005
  4. Ian Bicking

    HTML to Text renderer

    Ian Bicking, Nov 2, 2004, in forum: Python
    Replies:
    0
    Views:
    299
    Ian Bicking
    Nov 2, 2004
  5. Ian Bicking

    Re: HTML to Text renderer

    Ian Bicking, Nov 3, 2004, in forum: Python
    Replies:
    3
    Views:
    514
    Ivo Woltring
    Nov 9, 2004
Loading...

Share This Page