Beispiel #1
0
 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)
Beispiel #2
0
 def setUA(self, UA=""):
     from saker.utils.common import randua
     self.s.headers["User-Agent"] = UA if UA else randua()
Beispiel #3
0
 def setua(self, UA=""):
     self.headers["User-Agent"] = UA if UA else randua()