إعداد البروكسي في 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)؟›
كيف أحتفظ بالعنوان نفسه بين الطلبات في Colly (Go)؟›
كم يكلّف هذا؟›
تكاملات أخرى
شغّل Colly (Go) عبر عناوين سكنية
$7.35/غيغابايت عند 1 غيغابايت، و$2.57/غيغابايت بالجملة — نفس بيانات الدخول في كل أداة.
احصل على بروكسيات ←