#!/usr/bin/env python # High-Level Gopher Client with urllib - Chapter 1 - urlclient.py 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)
#!/usr/bin/env python # High-Level Gopher Client with urllib - Chapter 1 - urlclient.py 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)