Get unlimited access
Open in app
Home
Notifications
Lists
Stories

Write
Mohan Ganesan
Mohan Ganesan

Apr 15, 2021

·
1 min read

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

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.

--

--

More from Mohan Ganesan

Founder @ ProxiesAPI.com

Love podcasts or audiobooks? Learn on the go with our new app.

Try Knowable

Recommended from Medium

Richard Kenneth Eng

Richard Kenneth Eng

An Open Letter to All Universities

Pursuit

Pursuit

Introducing Margaret Ikeda

Youhee

Youhee

[Kafka] Running Kafka with Docker

Khanh Vo

Khanh Vo

Summary Knowledge about Functional Programming For Oracle Professional Java SE 8(Part 1)

Resource Erectors

Resource Erectors

High Tech Asphalt Paving Control 2021

johnpaul ifedi

johnpaul ifedi

KYVE Incentivized Testnet

Ferawati Hartanti Pratiwi

Ferawati Hartanti Pratiwi

in

Inside Bukalapak

T-zone series: Aim for a better programming

Kavitha Purushothaman

Kavitha Purushothaman

Bulk Copy Program (BCP) utility in SQL Server for Data Import

AboutHelpTermsPrivacy


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mohan Ganesan

Mohan Ganesan

Founder @ ProxiesAPI.com

More from Medium

Jamie Ashworth

Jamie Ashworth

An overachiever’s guide to rest

Kaustubh Hari Sethi

Kaustubh Hari Sethi

Powerful extensions for developers

Amanda Smith

Amanda Smith

Getting started with Tech(2)

Mczion Johnson

Mczion Johnson

Common Tips on Git and GitHub

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable