Internet Access: get time : Internet Access « Network « Python






Internet Access: get time

Internet Access: get time

import urllib2
for line in urllib2.urlopen('http://tycho.usno.navy.mil/cgi-bin/timer.pl'):
     if 'EST' in line:      # look for Eastern Standard Time
         print line
    

           
       

Related examples in the same category