antch icon indicating copy to clipboard operation
antch copied to clipboard

Example for proxy

Open safeallahee opened this issue 5 years ago • 2 comments

hi can you add example for proxy usage with antch!?

safeallahee avatar Nov 04 '18 21:11 safeallahee

It's very simple, just call UseProxy() method.

crawler := &antch.Crawler{}
proxyURL, _:= url.Parse("https://127.0.0.1:8080")
crawler.UseProxy(proxyURL)

proxy middle supported http, https, socks5 . https://godoc.org/github.com/antchfx/antch#Crawler.UseProxy

zhengchun avatar Nov 05 '18 01:11 zhengchun

thank you

safeallahee avatar Apr 24 '19 09:04 safeallahee