Hey everyone Samy here again :)
In this quick tutorial I will show you how you can use Python to Hide your IP when connecting to websites, using the requests library.
First thing you want to do is import requests and make a variable for url, username, password (user:pass variables used for proxies that use authentication)
Then make a result variable equal to requests.get(url, proxies) this requests the url using the proxies variables above.
Then from there you can do anything with it such as print the result URL's text.
Python 3.11 Code here:
MAKE SURE TO REPLACE "proxyUsername" & "proxyPassword" to your proxies info and "proxyAddress" "ProxyPort" to your proxies IP:PORT
Please leave a <3 if this helped you and leave a reply or DM on how I can make this tutorial / guide better in any way!
In this quick tutorial I will show you how you can use Python to Hide your IP when connecting to websites, using the requests library.
First thing you want to do is import requests and make a variable for url, username, password (user:pass variables used for proxies that use authentication)
Then make a result variable equal to requests.get(url, proxies) this requests the url using the proxies variables above.
Then from there you can do anything with it such as print the result URL's text.
Python 3.11 Code here:
Code
import requests
url = 'https://youtube.com/'
username = 'proxyUsername'
password = 'proxyPassword'
proxy = f"http://{username}:{password}@proxyAddress:ProxyPort"
result = requests.get(url, proxies = {
'http': proxy,
'https': proxy
})
print(result.url)Please leave a <3 if this helped you and leave a reply or DM on how I can make this tutorial / guide better in any way!

