>>> import re,urllib2 >>> re.search('\d+\.\d+\.\d+\.\d+',urllib2.urlopen("http://www.hereismyip.com").read()).group() 'xx.xx.xxx.xxx′
On 11月9日, 上午11时06分, Hieu Hoang <[EMAIL PROTECTED]> wrote: > Hi list, > I think a script to extract the IP from some websites like > whatismyip.com could do the job. I don't know how to write it though, > sure someone can give > direction on that. > > Cheers, > Rooy
-- http://mail.python.org/mailman/listinfo/python-list