Configurar proxy en Colly (Go)
The scraping framework for Go. Apúntalo al pool residencial de Eveses con la configuración de abajo: la geolocalización vive en el nombre de usuario, así que cambiar de país no exige tocar nada más.
proxy.eveses.com:12321 · SOCKS5 en 32325 · 199 países · desde $7.35/GB
Colly ships `proxy.RoundRobinProxySwitcher`, which rotates a fixed LIST of proxy URLs. With a rotating pool you want the opposite: one URL, and the pool rotates behind it. Feeding the switcher one URL is correct and the round-robin is simply unused.
Configuración
package main
import (
"github.com/gocolly/colly/v2"
"github.com/gocolly/colly/v2/proxy"
)
func main() {
c := colly.NewCollector(colly.Async(true))
// One URL: the pool rotates behind it, so the switcher has nothing to do.
rp, err := proxy.RoundRobinProxySwitcher(
"http://eveses_user_country-us:[email protected]:12321",
)
if err != nil { panic(err) }
c.SetProxyFunc(rp)
c.OnHTML("title", func(e *colly.HTMLElement) { println(e.Text) })
c.Visit("https://target-site.com")
c.Wait()
}Notas para Colly (Go)
Set Limit() with a Parallelism cap; Colly's async mode will otherwise open as many connections as it has URLs.
Give each parallel worker its own session token if the target ties state to an IP.
Cambia de país sin tocar Colly (Go)
eveses_user_country-deeveses_user_country-de_session-ab12cd34_lifetime-30mLa geolocalización y la sesión viven en el nombre de usuario, no en el host ni en el puerto. Toda la configuración de esta página queda igual al cambiar de país: editas una sola cadena. Hay 199 países direccionables, con tokens de ciudad y región dentro de la mayoría.
Preguntas frecuentes
¿Cómo configuro un proxy en Colly (Go)?›
¿Cómo elijo el país por el que sale Colly (Go)?›
¿Cómo mantengo la misma IP entre peticiones en Colly (Go)?›
¿Cuánto cuesta?›
Otras integraciones
Ejecuta Colly (Go) sobre IPs residenciales
$7.35/GB a 1 GB, $2.57/GB por volumen: las mismas credenciales en todas las herramientas.
Consigue proxies →