Colly (Go) mit Proxy einrichten
The scraping framework for Go. Richte es mit der Konfiguration unten auf den eveses-Residential-Pool aus — die Geo steckt im Benutzernamen, sonst muss für einen Länderwechsel nichts geändert werden.
proxy.eveses.com:12321 · SOCKS5 auf 32325 · 199 Länder · ab $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.
Konfiguration
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()
}Hinweise für 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.
Land wechseln, ohne Colly (Go) anzufassen
eveses_user_country-deeveses_user_country-de_session-ab12cd34_lifetime-30mGeo und Session leben im Benutzernamen, nicht im Host oder Port. Jede Konfiguration auf dieser Seite bleibt beim Länderwechsel unverändert — du bearbeitest einen einzigen String. 199 Länder sind adressierbar, in den meisten davon zusätzlich Stadt- und Regions-Token.
FAQ
Wie stelle ich in Colly (Go) einen Proxy ein?›
Wie wähle ich das Land, aus dem Colly (Go) herauskommt?›
Wie behalte ich in Colly (Go) dieselbe IP über mehrere Requests?›
Was kostet das?›
Weitere Integrationen
Colly (Go) über Residential-IPs laufen lassen
$7.35/GB bei 1 GB, $2.57/GB im Volumen — dieselben Zugangsdaten in jedem Tool.
Proxys holen →