Good afternoon, there is such a Composer library spatie / crawler spider I successfully installed it. But there’s not enough intelligence to launch the spider itself correctly, someone can set an example of how to scan for example https://ru.stackoverflow.com/

Thank.

  • Create a class that implements the \Spatie\Crawler\CrawlObserver and run Crawler::create() ->setCrawlObserver(/*мой скласс*/) ->startCrawling($url); - Bookin
  • Thanks for the quick answer, but you can use a specific example, since the phrase that implements the OOP interface is completely unclear I don’t know. ((( - user3051517
  • Well then it is worth reading about the PLO ... - Naumov

0