MCPcopy
hub / github.com/zu1k/proxypool / Get

Method Get

pkg/getter/web_fuzz_sub.go:21–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func (w *WebFuzzSub) Get() proxy.ProxyList {
22 resp, err := tool.GetHttpClient().Get(w.Url)
23 if err != nil {
24 return nil
25 }
26 defer resp.Body.Close()
27 body, err := ioutil.ReadAll(resp.Body)
28 if err != nil {
29 return nil
30 }
31 text := string(body)
32 subUrls := urlRe.FindAllString(text, -1)
33 result := make(proxy.ProxyList, 0)
34 for _, url := range subUrls {
35 result = append(result, (&Subscribe{Url: url}).Get()...)
36 }
37 return result
38}
39
40func (w *WebFuzzSub) Get2Chan(pc chan proxy.Proxy, wg *sync.WaitGroup) {
41 defer wg.Done()

Callers 1

Get2ChanMethod · 0.95

Calls 2

GetHttpClientFunction · 0.92
GetMethod · 0.65

Tested by

no test coverage detected