我用Twisted编写了一个简单的代理脚本,它运行得很好:
from twisted.internet import reactor
from twisted.web import proxy, server
site = server.Site(proxy.ReverseProxyResource('example.com', 80, ''.encode("utf-8")))
reactor.listenTCP(80, site)
reactor.run()
唯一的问题是,我想修改我的脚本从第三方站点获取的html,然后在服务器上呈现资源。我不确定在twisted/web/proxy.py
中的何处插入/修改代码。在
目前没有回答
相关问题 更多 >
编程相关推荐