Re: can i use the browser to show the result of python
On Sep 25, 12:41 pm, Hacken wrote: > I have write some python script > > i want to use browser(IE or FF) to call it, an show the returns! > > how to? Python script running under web browsers only like: python + website = django . -- http://mail.python.org/mailman/listinfo/python-list
Re: organizing your scripts, with plenty of re-use
I think the basically you need to write one python script name it __init__.py If you want this script may include functions to reading yours scripts from folder. Put this script in each folder and you use Margie solution . This allow you to use import from each folder . -- http://mail.python.org/mailman/listinfo/python-list
Re: How to read webpage
Maybe your python2.5 not working good!? But, I use python 2.6 , and i use this for your problem: import urllib html = urllib.urlopen("http://www.rediff.com/";).read() print html If you want use authenticate then... You make working urllib2 and use this >>>auth = urllib2.Request(auth_uri, authreq_data) On Aug 1, 4:52 pm, MRAB wrote: > tarun wrote: > > Dear All, > > I want to read a webpage and copy the contents of it in word file. I > > tried to write following code: > > > import urllib2 > > urllib2.urlopen("http://www.rediff.com/";) > > > *Error:-* > > > urllib2.urlopen("http://www.icicibank.com/";) > > File "C:\Python25\lib\urllib2.py", line 121, in urlopen > > return _opener.open(url, data) > > File "C:\Python25\lib\urllib2.py", line 374, in open > > response = self._open(req, data) > > File "C:\Python25\lib\urllib2.py", line 392, in _open > > '_open', req) > > File "C:\Python25\lib\urllib2.py", line 353, in _call_chain > > result = func(*args) > > File "C:\Python25\lib\urllib2.py", line 1100, in http_open > > return self.do_open(httplib.HTTPConnection, req) > > File "C:\Python25\lib\urllib2.py", line 1075, in do_open > > raise URLError(err) > > urllib2.URLError: > > I've just tried it. I didn't get an exception, so your problem must be > elsewhere. -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL and Python
On my photo jpg i have this : Image Type: jpeg (The JPEG image format) Width: 1224 pixels Height: 1632 pixels Camera Brand: Sony Ericsson Camera Model: W810i Date Taken: 2009:07:09 08:16:21 Exposure Time: 1/19 sec. ISO Speed Rating: 320 Flash Fired: Flash did not fire, compulsory flash mode. Metering Mode: Center-Weighted Average Software: R4EA031 prgCXC1250321_ORANGE_HN 4.5 This is the data i want edit it to make some copyright for my site. -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL and Python
I don't extract data from jpegs. I wanna put some data in this (copyright of my site) ... On Aug 20, 2:01 pm, MaxTheMouse wrote: > On Aug 20, 10:23 am, catafest wrote: > > > On my photo jpg i have this : > > > Image Type: jpeg (The JPEG image format) > > Width: 1224 pixels > > Height: 1632 pixels > > Camera Brand: Sony Ericsson > > Camera Model: W810i > > Date Taken: 2009:07:09 08:16:21 > > Exposure Time: 1/19 sec. > > ISO Speed Rating: 320 > > Flash Fired: Flash did not fire, compulsory flash mode. > > Metering Mode: Center-Weighted Average > > Software: R4EA031 prgCXC1250321_ORANGE_HN 4.5 > > > This is the data i want edit it to make some copyright for my site. > > I don't know about PIL but you might want to try > exif.py.http://sourceforge.net/projects/exif-py/ -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL and Python
If I make it work, i will send the solution. Thank you ! -- http://mail.python.org/mailman/listinfo/python-list
Re: About diagram and python
This is the software : http://projects.gnome.org/dia/ -- http://mail.python.org/mailman/listinfo/python-list