Skip to content

Native support for X-Crawlera-Session #27

@dchaplinsky

Description

@dchaplinsky

It'd be great if the plugin can be configured that it'll use/re-use the sessions mechanism.

Because managing it in spiders like that:

        if 'X-Crawlera-Session' in response.headers and response.headers['X-Crawlera-Session'] != self.session_id:
            self.session_id = response.headers['X-Crawlera-Session']
            logger.debug(
                "Got new session id from Crawlera: {}".format(self.session_id))

is a little bit ugly

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions