Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When two crawlers need to share the same login operation #247

Open
ZhangChengLin opened this issue May 6, 2024 · 1 comment
Open

When two crawlers need to share the same login operation #247

ZhangChengLin opened this issue May 6, 2024 · 1 comment

Comments

@ZhangChengLin
Copy link

ZhangChengLin commented May 6, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant