Skip to content

SSLProxies is a scraper for getting proxies list from sslproxies.org

License

Notifications You must be signed in to change notification settings

tamboto2000/sslproxies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSLProxies

Go Reference

SSLProxies is a scraper for finding proxies based on sslproxies.org.

Installation

SSLProxies require Golang v14 or up

$ go get github.com/tamboto2000/sslproxies

Examples

Example 1

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())
	}
}

Example 2

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...
}

Example 3

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...
}

License

MIT