SSLProxies is a scraper for finding proxies based on sslproxies.org.
SSLProxies require Golang v14 or up
$ go get github.com/tamboto2000/sslproxies
package main
import (
"github.com/tamboto2000/sslproxies"
)
func main() {
// get 20 proxies from United States of America with anonymity level of Elite Proxy
proxies, err := sslproxies.Get(20, sslproxies.UnitedStates, sslproxies.Elite)
if err != nil {
panic(err.Error())
}
// save proxies
if err := sslproxies.Save(proxies); err != nil {
panic(err.Error())
}
// save proxies to custom path
if err := sslproxies.SaveToPath(proxies, "my_proxies.json"); err != nil {
panic(err.Error())
}
}
Load proxies from saved file
package main
import (
"github.com/tamboto2000/sslproxies"
)
func main() {
// get proxies from saved files
proxs, err := sslproxies.Load()
if err != nil {
panic(err.Error())
}
// use the proxs...
}
Load proxies from custom path
package main
import (
"github.com/tamboto2000/sslproxies"
)
func main() {
// get proxies from custom path
proxs, err := sslproxies.LoadFromPath("my_proxies.json")
if err != nil {
panic(err.Error())
}
// use the proxs...
}
MIT