I came across this simple proxy example that uses Twisted:
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from twisted.internet import reactor
from twisted.web import proxy, server
site = server.Site(proxy.ReverseProxyResource('yahoo.com', 80, ''))
reactor.listenTCP(8080, site)
reactor.run()
The issue is that my computer needs to use a proxy itself to access the web, so I was wondering if there is a way to specify those proxy settings?