Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def ua(random=False):
    if random:
        return random.choice(uas)
    return useragent
        


src/a/r/aranha-0.1.1/aranha/job.py   aranha(Download)
        self.headers = dict(self.default_headers)
        self.headers.update(headers or {})
        self.headers['User-Agent'] = utils.ua(randomua)
        self.body = body
        self.meta = meta

src/a/r/aranha-HEAD/aranha/job.py   aranha(Download)
        self.headers = dict(self.default_headers)
        self.headers.update(headers or {})
        self.headers['User-Agent'] = utils.ua(randomua)
        self.body = body
        self.meta = meta