core icon indicating copy to clipboard operation
core copied to clipboard

When two crawlers need to share the same login operation

Open ZhangChengLin opened this issue 1 year ago • 1 comments

There are two separate crawlers that need to share the same login operation. Should this login step be made into a middleware or a processor? It is now a php trait.

Or make an Extensions

ZhangChengLin avatar May 06 '24 14:05 ZhangChengLin

Looks like the answer is already there.

Want to add custom HTTP headers to every outgoing request based on some condition? Sure thing, sounds like a job for a downloader middleware.

https://roach-php.dev/docs/introduction#built-with-extensibility-in-mind

ZhangChengLin avatar May 07 '24 04:05 ZhangChengLin