Comments (2)
The issue is probably this line right here
yield $this->parse($response); // Here I try yielding the parse() method using the response object from the first page
$this->parse(...)
already returns a Generator
so all youβre doing is yielding it again, essentially returning a Generator<int, Generator<int, ParseResult>>
. What you actually want to do is yield from that generator, instead of yielding the Generator itself.
public function parseOverview(Response $response): \Generator
{
- yield $this->parse($response);
+ yield from $this->parse($response);
Does that solve your problem?
from core.
Thats it! thanks.
from core.
Related Issues (20)
- Middleware for Downloader HOT 3
- Run namespace and Request serialization HOT 2
- Is there a documented way to scrape Single Page Applications? HOT 1
- Is there any way of accessing the first item inside a processor or an extension? HOT 2
- No publishable resources for tag [] for publishing config file HOT 2
- Pass Context into Request Middleware HOT 3
- This library is no longer maintained? HOT 2
- Possibly to scrape behind secured sessions
- Self signed certificate HOT 2
- How to process items in batch?
- Laravel 10 support? HOT 1
- No results with specific url HOT 2
- Argument #1 ($timestamp) must be greater than or equal to the current time HOT 1
- How to login and then scrap data from a page that requires auth? HOT 1
- time_sleep_until(): Argument #1 ($timestamp) must be greater than or equal to the current time HOT 4
- Responses dropped by middlewares are not registered HOT 1
- parse method is called even on response status 404 HOT 2
- Requests with ExecuteJavascriptMiddleware are sent twice HOT 1
- Conflict with Laravel 9 HOT 2
- Symfony 5.4.1 issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.