DEV Community


How to write a Simple Proxy Server in Python With Just 17 Lines of Code

Mohan Ganesan
Proxies API has been built to make Data mining more easier and efficient, to support the Online Crawling Apps & Software
・1 min read

It’s super easy to build a rudimentary proxy server with Python. The trick lies in using the right modules.

Today we will use the SocketServer and the SimpleHTTPServer modules to listen for incoming requests and the URL lib module to fetch the target web pages.

Discussion (0)