is this framework usable outside of "roach:run" ? #43
-
hi, $spider->run();
$items = $spider->getProcessedItems(); or is the only way to run "roach:run myspider" as first command that stores the items somewhere and after that I run my own stuff that does something with that items? i am aware, that there are "ItemProcessors" but when testing that package here I thought, it would be possible to implement the "crawling" somewhere in the middle of my own code. thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think |
Beta Was this translation helpful? Give feedback.
I think
Roach::collectSpider
is what you're looking for: https://roach-php.dev/docs/spiders#retrieving-scraped-items-after-a-run