The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Python Programming
|
Text browser
Discuss Text browser in the Python Programming forum on Dev Shed. Text browser Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

May 6th, 2004, 02:13 PM
|
|
Contributing User
|
|
Join Date: Feb 2004
Posts: 44
Time spent in forums: < 1 sec
Reputation Power: 10
|
|
|
Text browser
Is it possible to create a text based web browser using python?? just wondering.
|

May 6th, 2004, 02:43 PM
|
|
Contributing User
|
|
Join Date: Dec 2001
Location: Houston, TX
Posts: 383
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 12
|
|
|
yes
|

May 6th, 2004, 05:21 PM
|
|
Contributing User
|
|
Join Date: Feb 2004
Location: London, England
|
|
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
|

May 6th, 2004, 05:25 PM
|
|
Contributing User
|
|
Join Date: Feb 2004
Location: London, England
|
|
|
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
|

May 6th, 2004, 11:45 PM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
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
|

May 8th, 2004, 03:14 PM
|
|
|
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.

|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|