def setUA(self, UA=""): """set default User Agent """ from saker.utils.common import randua ua = UA if UA else randua() self.setHeader("User-Agent", ua)
def setUA(self, UA=""): from saker.utils.common import randua self.s.headers["User-Agent"] = UA if UA else randua()
def setua(self, UA=""): self.headers["User-Agent"] = UA if UA else randua()