Colly (Go) · НАЛАШТУВАННЯ ПРОКСІ

Налаштування проксі в 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-de
Липка, 30 хвeveses_user_country-de_session-ab12cd34_lifetime-30m

Гео і сесія живуть в імені користувача, а не в хості чи порті. Уся конфігурація на цій сторінці лишається тією самою при зміні країни — ви правите один рядок. Адресуються 199 країн, у більшості з них ще й токени міста та регіону.

Часті питання

Як налаштувати проксі в Colly (Go)?›
Спрямуйте його на proxy.eveses.com, порт 12321 для HTTP або 32325 для SOCKS5, і авторизуйтеся логіном і паролем проксі Eveses. Точний синтаксис — у сніпеті вище. 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.
Як обрати країну виходу для Colly (Go)?›
Додайте гео-токен у ЛОГІН, а не міняйте хост: eveses_user_country-de виходить у Німеччині, eveses_user_country-us — у США. Так адресуються 199 країн, а токени міста й регіону звужують далі. Більше в конфігурації Colly (Go) нічого не змінюється.
Як зберегти один IP між запитами в Colly (Go)?›
Додайте токен сесії — eveses_user_country-us_session-ab12cd34_lifetime-30m — і кожен запит із цим логіном виходить з однієї адреси, доки не спливе час життя. Приберіть токен — кожен запит іде з нового IP.
Скільки це коштує?›
Резидентний трафік тарифікується за гігабайт із гаманця Eveses: $7.35/ГБ на 1 ГБ і до $2.57/ГБ на обсязі. Плати за інструмент немає, ті самі доступи працюють усюди одночасно.

Інші інтеграції

Запустити Colly (Go) через резидентні IP

$7.35/ГБ на 1 ГБ, $2.57/ГБ на обсязі — ті самі доступи в усіх інструментах.

Отримати проксі →