(self, request)
return i <= 2
using direct download for depth <= 2
        using proxy with probability 0.3
using direct download for depth <= 2
        using proxy with probability 0.3
using direct download for depth < = 2 using proxy with probability 0 . 3
def use_proxy(self, request):
        """
        using direct download for depth <= 2
        using proxy with probability 0.3
        """
        if "depth" in request.meta and int(request.meta['depth']) <= 2:
            return False
        i = random.randint(1, 10)
        return i <= 2
def use_proxy ( self , request ) : if "depth" in request . meta and int ( request . meta [ 'depth' ] ) <= 2 : return False i = random . randint ( 1 , 10 ) return i <= 2