A simple implementation of proxy-www using the power of python language
import urllib
class HTTPProxy:
def __init__(self, name='https://www'):
self.name = name
def __getattr__(self, name):
return HTTPProxy(self.name + '.' + name)
def request(self):
return urllib.request.urlopen(self.name)
www = HTTPProxy()
Visit google:
response = www.google.com.request()
response.status
# 200