Skip to content

Allow Proxy Middleware Configuration for Specific Spiders #74

@SergeyKapshuchenko

Description

@SergeyKapshuchenko

Good day !

I would like to know if it's possible to configure the proxy middleware in a way that it applies only to specific spiders instead of all spiders in a Scrapy project.

For example, I want to have a toggle or setting for each spider that decides whether proxies should be used or not. Is there a recommended way to achieve this using the Scrapy framework?

Example Use Case:
Spider A should use proxies.
Spider B should not use proxies.
Would it be possible to configure the middleware dynamically per spider or implement logic to check this toggle and enable/disable the middleware accordingly? If yes, could you provide guidance or examples?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions