Internet Access : Internet Access : Network PYTHON examples


PYTHON examples » Network » Internet Access »

 

Internet Access


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 Scripts with Example Source Code in same category :

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Network
» Internet Access