-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Labels
Description
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