spatie / crawler

An easy to use, powerful crawler implemented in PHP. Can execute Javascript.
https://freek.dev/308-building-a-crawler-in-php
MIT License
2.51k stars 357 forks source link

Call to undefined method GuzzleHttp\Client::getConfig() #434

Closed tommusrhodus closed 1 year ago

tommusrhodus commented 1 year ago

Hi!

Using this tool in a WordPress plugin and I'm running into the following error:

Call to undefined method GuzzleHttp\Client::getConfig()

This is due to GuzzleHttp being included in another plugin using the updated version, noting this docBlock from the currently used GuzzleHttp version: @deprecated Client::getConfig will be removed in guzzlehttp/guzzle:8.0.

To resolve the conflict, the GuzzleHttp dependency in Crawler will need updating.

freekmurze commented 1 year ago

Feel free to send a PR that fixes this.