If you want your proxies to be from a specific location, you will have to either add the a country or region flag so that we can process the request.
The value of the country/region paratemere is case insensitive but it follows the 2 letter country code using the ISO 3166 Alpha 2 format.
Full Region List: https://speedproxies.net/docs/regions.json
Full Country List: https://speedproxies.net/docs/countries.json
Here are a few examples of using a country or region parameters:
country-US
region-EU
Code Example
cURL Go Python
Copy curl -x budget.speedproxies.net:11000 -U "USERNAME:PASSWORD_country-us" https://whatsmyip.speedshare.workers.dev/
Copy package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
)
func main () {
proxyURL, _ := url. Parse ( "http://USERNAME:PASSWORD_country-us@budget.speedproxies.net:11000" )
proxyClient := & http . Client {
Transport: & http . Transport {
DialContext: ( & net . Dialer {
KeepAlive: time. Duration ( - 1 ),
}).DialContext,
DisableKeepAlives: true ,
Proxy: http. ProxyURL (proxyURL),
},
}
resp, err := proxyClient. Get ( "https://whatsmyip.speedshare.workers.dev/" )
if err != nil {
fmt. Println ( "Error:" , err)
return
}
defer resp.Body. Close ()
if body, err := io. ReadAll (resp.Body); err == nil {
fmt. Println ( string (body))
} else {
fmt. Println ( "Error:" , err)
}
}
Copy import urllib . request
import random
username = 'USERNAME'
password = 'PASSWORD_country-us'
entry = ( 'http://customer- %s : %s @budget.speedproxies.net:11000' %
(username , password))
query = urllib . request . ProxyHandler ({
'http' : entry,
'https' : entry,
})
execute = urllib . request . build_opener (query)
print (execute. open ( 'https://whatsmyip.speedshare.workers.dev/' ). read ())
Last updated 9 months ago