Skip to content

A simple implementation of proxy-www using the power of python language

License

Notifications You must be signed in to change notification settings

weynelucas/python-proxy-www

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-proxy-www

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

About

A simple implementation of proxy-www using the power of python language

Topics

Resources

License

Stars

Watchers

Forks

Languages