Exemple #1
0
    def __init__(self, username, password):
        AbstractAPI.__init__(self, username, password)

        self.cookiejar = cookielib.CookieJar()
        self.opener = urllib2.build_opener(
            urllib2.HTTPCookieProcessor(self.cookiejar))
        self.opener.addheaders = [('User-Agent',
                                   'Mozilla/5.0 technic-plugin-1.5')]
Exemple #2
0
    def __init__(self, username, password):
        AbstractAPI.__init__(self, username, password)

        self.time_shift = 0
        self.protect_code = ""

        self.cookiejar = cookielib.CookieJar()
        self.opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cookiejar))
        self.opener.addheaders = [("User-Agent", "Mozilla/5.0 technic-plugin-1.5")]
Exemple #3
0
	def __init__(self, username, password):
		AbstractAPI.__init__(self, username, password)
		self.channels = {}
		self.aTime = 0
Exemple #4
0
 def __init__(self, username, password):
     AbstractAPI.__init__(self, username, password)
     self.channels = {}
     self.aTime = 0
Exemple #5
0
 def __init__(self, username, password):
     AbstractAPI.__init__(self, username, password, VERSION)
     self.time_shift = 0
     self.time_zone = 0
     self.servertime = 0
     self.settings = {}
Exemple #6
0
	def __init__(self, username, password):
		AbstractAPI.__init__(self, username, password)

		self.cookiejar = cookielib.CookieJar()
		self.opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cookiejar))
		self.opener.addheaders = [('User-Agent', 'Mozilla/5.0 technic-plugin-1.5')]