Add a proxy to your own script, in plain English
In a browser or an app, a proxy usually goes into a settings screen and no code is involved. These guides cover the other case: a program you wrote yourself, such as a script for a class or a small project, that has to fetch web pages. Choose your language to see where your four proxy details (host, port, username and password) go, with a short sample that prints the IP address a website sees. Only point it at sites whose terms allow it, and keep within the law where you live.
Python
Python's requests library takes the proxy, login included, as a single address, which makes it a gentle first step.
Follow the Python guide →Node.js
Install axios and https-proxy-agent with npm, then save the file with a .mjs ending so its import lines run.
Follow the Node.js guide →PHP
PHP's cURL functions need only two proxy settings, one for the address and one for your login.
Follow the PHP guide →Java
No extra downloads: Java's built-in HttpClient sends the request, and a short Authenticator block supplies your login.
Follow the Java guide →GoLang
Go needs no add-ons here. Its net/http Transport, the part that carries each request, is simply pointed at your proxy.
Follow the GoLang guide →