FreeProxy httpbin python get Ip
To get the IP address using FreeProxy and Python, you can use the following code:
import requests
# Set the proxy server
proxy = {
'http': 'http://127.0.0.1:8080',
'https': 'http://127.0.0.1:8080'
}
# Make the request
response = requests.get('https://httpbin.org/ip', proxies=proxy)
# Print the response
print(response.json()['origin'])
This code sets the proxy server to http://127.0.0.1:8080 and then makes a GET request to https://httpbin.org/ip. The response is then printed, which should contain the IP address of the proxy server
原文地址: http://www.cveoy.top/t/topic/d5jF 著作权归作者所有。请勿转载和采集!