Answer the question
In order to leave comments, you need to log in
How to proxy a website in python?
Hello. Nginx has a proxy_pass setting to proxy traffic to the desired host. Is it possible to implement something like this in python. Or I use the same nginx, but with preprocessing (html) documents. Everything should work with support for user sessions.
There is site A and I need to proxy it to another domain with a change in html.
I see it this way: Nginx (receives requests) -> python (processes html) -> then the user sees the final html.
Where to dig? What to read ?
Answer the question
In order to leave comments, you need to log in
you can mitm proxy
you can use lxml (yes, it not only parses, but also changes the house-tree)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question