core icon indicating copy to clipboard operation
core copied to clipboard

Spider parse yield nothing

Open flavioheleno opened this issue 1 year ago • 0 comments

Hey, first of all, nice work on this lib! Super easy to migrate from scrapy! :-D

I was wondering how one could handle SpiderInterface::parse() if, for example, what I'm looking to scrape from a page could not be found and I'm not going to crawl it.

I'm looking for a yield $this->empty(); - or something in that direction -, in line with the current yield $this->request(); and yield $this->item();.

flavioheleno avatar Sep 08 '24 03:09 flavioheleno