Налаштування проксі в Colly (Go)
The scraping framework for Go. Спрямуйте його на резидентний пул Eveses конфігурацією нижче — гео живе в імені користувача, тож зміна країни не потребує міняти щось іще.
proxy.eveses.com:12321 · SOCKS5 на 32325 · 199 країн · від $7.35/ГБ
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.
Конфігурація
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()
}Зауваження щодо 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.
Змінити країну, не чіпаючи Colly (Go)
eveses_user_country-deeveses_user_country-de_session-ab12cd34_lifetime-30mГео і сесія живуть в імені користувача, а не в хості чи порті. Уся конфігурація на цій сторінці лишається тією самою при зміні країни — ви правите один рядок. Адресуються 199 країн, у більшості з них ще й токени міста та регіону.
Часті питання
Як налаштувати проксі в Colly (Go)?›
Як обрати країну виходу для Colly (Go)?›
Як зберегти один IP між запитами в Colly (Go)?›
Скільки це коштує?›
Інші інтеграції
Запустити Colly (Go) через резидентні IP
$7.35/ГБ на 1 ГБ, $2.57/ГБ на обсязі — ті самі доступи в усіх інструментах.
Отримати проксі →