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! |
Answered by
ksassnowski
Jun 8, 2022
Replies: 1 comment 1 reply
|
I think |
1 reply
Answer selected by
michabbb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think
Roach::collectSpideris what you're looking for: https://roach-php.dev/docs/spiders#retrieving-scraped-items-after-a-run