High-Level Gopher Client with urllib : Gopher Client : Network PYTHON examples


PYTHON examples » Network » Gopher Client »

 

High-Level Gopher Client with urllib



import urllib, sys
host = sys.argv[1]
file = sys.argv[2]

f = urllib.urlopen('gopher://%s%s' % (host, file))
for line in f.readlines():
    sys.stdout.write(line)
    

           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo Network
» Gopher Client