Thread: Text browser

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    44
    Rep Power
    11

    Text browser


    Is it possible to create a text based web browser using python?? just wondering.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    383
    Rep Power
    13
    yes
    Debian - because life's too short for worrying.
    Best. (Python.) IRC bot. ever.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2004
    Location
    London, England
    Posts
    1,585
    Rep Power
    1373
    One of the earliest Python projects was a web browser called Grail, originally written by Guido Van Rossum.

    I believe this was a full blown graphical brower written in Tkinter, and not just text based.

    So, yes it is possible.

    (a quick search shows it is still hosted on sourceforge: http://grail.sourceforge.net/, but I don't think it is still being actively developed - the last release was in 2000)

    Dave - The Developers' Coach
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2004
    Location
    London, England
    Posts
    1,585
    Rep Power
    1373
    In addition, the wxPython GUI framework has an HTML control, so you can create a basic web browser with very little coding.

    Dave - The Developers' Coach
  8. #5
  9. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    just to comferm grail isnt being developed anymore which is a real shame - where the browser wasn't the best the Python applets bit was fun and something i'd like to see in other browsers so if you do do this Flix theres one good feature you can include
    programming language development: www.netytan.com Hula

  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    624
    Rep Power
    34
    Use urllib2 to get the page, use htmllib to parse the html.

    Work out some way to change html, poor html, xhtml, css, tables, images, hyperlinks, frames, etc. into a usable text page and print it to the screen.


IMN logo majestic logo threadwatch logo seochat tools logo