|
2007-06-17
, 08:48
|
|
Posts: 2,853 |
Thanked: 968 times |
Joined on Nov 2005
|
#2
|
|
2007-06-17
, 10:00
|
Posts: 1,038 |
Thanked: 737 times |
Joined on Nov 2005
@ Helsinki
|
#3
|
import os,urllib,time,string urladdress="http://www.cnn.com" urladdress=urllib.urlencode(urladdress) print "opening" + urladdress try: sock = urllib.urlopen(urladdress) htmlSource = sock.read() except: print "unable to get socket" print sys.exc_info()[0]
|
2007-06-17
, 11:35
|
Posts: 5 |
Thanked: 1 time |
Joined on Jun 2007
|
#4
|
It will take about this much code in python, oh, and adding a text area (or whatever you need):
Code:import os,urllib,time,string urladdress="http://www.cnn.com" urladdress=urllib.urlencode(urladdress) print "opening" + urladdress try: sock = urllib.urlopen(urladdress) htmlSource = sock.read() except: print "unable to get socket" print sys.exc_info()[0]
|
2007-06-17
, 15:46
|
|
Posts: 2,853 |
Thanked: 968 times |
Joined on Nov 2005
|
#5
|
|
2007-06-19
, 10:35
|
Posts: 5 |
Thanked: 1 time |
Joined on Jun 2007
|
#6
|
Well, Python runs just fine under Maemo, it is even packaged by the good folks at INdT and comes ready-to-use with pyGTK and pyGame. You can use either of these to make a GUI for your app, or make it HTML and show it in the browser.
|
2007-06-19
, 11:25
|
Posts: 1,038 |
Thanked: 737 times |
Joined on Nov 2005
@ Helsinki
|
#7
|
pls give me some help.
rgds,
henk