mvdbos / php-spider

A configurable and extensible PHP web spider
MIT License
1.33k stars 234 forks source link

How php-spider work with proxy? #55

Closed Chel1982 closed 4 years ago

Chel1982 commented 6 years ago

Can I work with proxies when collecting links?

HamzaDevz commented 5 years ago

+1

mvdbos commented 4 years ago

If you have the HTTP_PROXY and HTTPS_PROXY environment variables set, they will automatically be picked up and used by the GuzzleRequestHandler. If that does not work for you, you can create your own request handler that is even smarter about it. See #63 for some explanation on how to do that.