|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Text browser
Is it possible to create a text based web browser using python?? just wondering.
|
|
#2
|
|||
|
|||
|
yes
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
||||
|
||||
|
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
![]() |
|
#6
|
|||
|
|||
|
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. ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Text browser |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|