Colly (Go) · प्रॉक्सी सेटअप

Colly (Go) में प्रॉक्सी सेटअप

The scraping framework for Go. नीचे दिए कॉन्फ़िग से इसे Eveses के रेजिडेंशियल पूल पर सेट करें — जियो यूज़रनेम में रहता है, इसलिए देश बदलने के लिए और कुछ बदलना नहीं पड़ता।

proxy.eveses.com:12321 · SOCKS5 32325 पर · 199 देश · $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.

कॉन्फ़िगरेशन

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 पर सेट करें — HTTP के लिए पोर्ट 12321, SOCKS5 के लिए 32325 — और अपने 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) के कॉन्फ़िग में और कुछ नहीं बदलता।
Colly (Go) में रिक्वेस्ट के बीच एक ही IP कैसे रखें?›
सेशन टोकन जोड़ें — eveses_user_country-us_session-ab12cd34_lifetime-30m — और उस यूज़रनेम वाली हर रिक्वेस्ट लाइफ़टाइम खत्म होने तक एक ही पते से निकलती है। टोकन हटाएँ तो हर रिक्वेस्ट नई IP पर घूम जाती है।
इसकी कीमत क्या है?›
रेजिडेंशियल ट्रैफ़िक आपके Eveses वॉलेट से प्रति गीगाबाइट बिल होता है: 1 GB पर $7.35/GB, वॉल्यूम पर घटकर $2.57/GB। प्रति-टूल कोई शुल्क नहीं, और वही क्रेडेंशियल सभी टूल में एक साथ चलते हैं।

अन्य इंटीग्रेशन

रेजिडेंशियल IP पर Colly (Go) चलाएँ

1 GB पर $7.35/GB, वॉल्यूम पर $2.57/GB — हर टूल में वही क्रेडेंशियल।

प्रॉक्सी लें →