Esempio n. 1
0
class MongodbScoreBackendOverused(MongodbScoreBackend):
    def __init__(self, manager):
        super(MongodbScoreBackendOverused, self).__init__(manager)
        self._requests_buffer = OverusedBufferScrapy(super(MongodbScoreBackendOverused, self).get_next_requests,
                                               manager.logger.manager.debug)
    def get_next_requests(self, max_n_requests, **kwargs):
        return self._requests_buffer.get_next_requests(max_n_requests, **kwargs)
Esempio n. 2
0
 def __init__(self, manager):
     super(MongodbScoreBackendOverused, self).__init__(manager)
     self._requests_buffer = OverusedBufferScrapy(super(MongodbScoreBackendOverused, self).get_next_requests,
                                            manager.logger.manager.debug)