[Twisted-Python] Fw: [Tutor] Interfacing to the web

Hi all! It was suggested in Tutor that Twisted might be what I'm looking for (please see the thread below). The best bet appears to be a proxy to which I can add some intercept logic. Anybody done this with Twisted? TIA -Andy -----Original Message----- From: andy surany <mongo57a@comcast.net> To: Magnus Lycka <magnus@thinkware.se>; tutor@python.org <tutor@python.org> Date: Wednesday, October 23, 2002 5:44 PM Subject: Re: [Tutor] Interfacing to the web From the responses I have received, it sounds like a proxy is the best bet. However, my application is meant to run on Linux, Windows, and Mac platforms, so that may rule out some software (it looks like squid is for linux only????, and privoxy does not allow code extensions). So I will search for a good proxy. Anyone write a good one????? Or know of one?(given the above caveats...). TIA -Andy -----Original Message----- From: Magnus Lycka <magnus@thinkware.se> To: andy surany <mongo57a@comcast.net>; tutor@python.org <tutor@python.org> Date: Wednesday, October 23, 2002 5:20 PM Subject: Re: [Tutor] Interfacing to the web At 13:03 2002-10-23 -0400, andy surany wrote:
I see two reasonable ways to go about this. One is to use a web proxy that acts as a man-in-the-middle. I'm not aware of any python proxies though, but maybe it's possible tobuild plugins for some proxies? Something along the line of privoxy (www.privoxy.org) or squid (www.squid-cache.org) might be useful??? See http://www.squid-cache.org/related-software.html Another option could be to build a custom web browser. If you use wxPython, there is a HTML window component that could be useful. If you are in MS Windows, you could also plug into Internet Explorer or at least use parts of it. See the wxPython demo. -- Magnus Lyckå, Thinkware AB Älvans väg 99, SE-907 50 UMEÅ tel: 070-582 80 65, fax: 070-612 80 65 http://www.thinkware.se/ mailto:magnus@thinkware.se _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Just to interject a correction to the below bit about Squid. Windows is an officially supported platform, with at least two active maintainers. Squid runs natively as a service on Windows NT when compiled with MS compilers and under Cygwin built with GCC. The MinGW port is reportedly going well, though incomplete right now. It has also been reported to compile (with effort) under Mac OS X. It is also likely to become a supported platform if someone will step forward to take responsibility for keeping an eye on new versions to insure they build and run. Squid also runs on most reasonably current Unices with GCC and GNU make, as well as most modern platforms with vendor-supplied compilers (though GNU make is probably still required in most cases). andy surany wrote:
-- Joe Cooper <joe@swelltech.com> Web caching appliances and support. http://www.swelltech.com

On Wed, 23 Oct 2002 21:08:24 -0400 andy surany <mongo57a@comcast.net> wrote:
You could make a transparent proxy with Twisted, yes, since it has both http client and server classes. There's a module twisted.web.proxy that does that. Might not work without some munging of the returned HTML, however. -- Itamar Shtull-Trauring http://itamarst.org/ Available for Python, Twisted, Zope and Java consulting

Just to interject a correction to the below bit about Squid. Windows is an officially supported platform, with at least two active maintainers. Squid runs natively as a service on Windows NT when compiled with MS compilers and under Cygwin built with GCC. The MinGW port is reportedly going well, though incomplete right now. It has also been reported to compile (with effort) under Mac OS X. It is also likely to become a supported platform if someone will step forward to take responsibility for keeping an eye on new versions to insure they build and run. Squid also runs on most reasonably current Unices with GCC and GNU make, as well as most modern platforms with vendor-supplied compilers (though GNU make is probably still required in most cases). andy surany wrote:
-- Joe Cooper <joe@swelltech.com> Web caching appliances and support. http://www.swelltech.com

On Wed, 23 Oct 2002 21:08:24 -0400 andy surany <mongo57a@comcast.net> wrote:
You could make a transparent proxy with Twisted, yes, since it has both http client and server classes. There's a module twisted.web.proxy that does that. Might not work without some munging of the returned HTML, however. -- Itamar Shtull-Trauring http://itamarst.org/ Available for Python, Twisted, Zope and Java consulting
participants (3)
-
andy surany
-
Itamar Shtull-Trauring
-
Joe Cooper