Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for proxy #8

Open
safeallahee opened this issue Nov 4, 2018 · 2 comments
Open

Example for proxy #8

safeallahee opened this issue Nov 4, 2018 · 2 comments

Comments

@safeallahee
Copy link

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

@zhengchun
Copy link
Contributor

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

@safeallahee
Copy link
Author

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants