Example #1
0
    def run(self):
        #user = raw_input('QQ:')
        #pwd = getpass.getpass('password: '******'QQ']
        #pwd = os.environ['QQ_PASSWD']
        try:
            import os
            user = os.environ['QQ']
            pwd = os.environ['QQ_PASSWD']
        except:
            import getpass
            user = raw_input('QQ:')
            pwd = getpass.getpass('password: ')

        self.user = user
        self.pwd = pwd

        self.qq = webqq(user, pwd, msg_queue)
        self.qq.getSafeCode()
        self.qq.loginGet()
        self.qq.loginPost()
        self.qq.getGroupList()
        self.qq.getFriend()

        self.qq.setDaemon(True)
        self.qq.start()
Example #2
0
    def run(self):
        #user = raw_input('QQ:')
        #pwd = getpass.getpass('password: '******'QQ']
        #pwd = os.environ['QQ_PASSWD']
        try:
            with open('./user') as fi:
              user = fi.readline().strip()
              pwd = fi.readline().strip()
        except:
            import getpass
            user = raw_input('QQ:')
            pwd = getpass.getpass('password: ')

        self.user = user
        self.pwd = pwd

        self.qq = webqq(user, pwd, msg_queue)
        self.qq.getSafeCode()
        self.qq.loginGet()
        self.qq.loginPost()
        self.qq.getGroupList()
        self.qq.getFriend()

        self.qq.setDaemon(True)
        self.qq.start()
Example #3
0
    def run(self):
        #user = raw_input('QQ:')
        #pwd = getpass.getpass('password: '******'QQ']
        #pwd = os.environ['QQ_PASSWD']
        try:
            import os
            user = os.environ['QQ']
            pwd = os.environ['QQ_PASSWD']
        except:
            import getpass
            user = raw_input('QQ:')
            pwd = getpass.getpass('password: ')

        self.user = user
        self.pwd = pwd

        self.qq = webqq(user, pwd, msg_queue)
        self.qq.getSafeCode()
        self.qq.loginGet()
        self.qq.loginPost()
        self.qq.getGroupList()
        self.qq.getFriend()

        self.qq.setDaemon(True)
        self.qq.start()
Example #4
0
    def run(self):
        #user = raw_input('QQ:')
        #pwd = getpass.getpass('password: '******'QQ']
        #pwd = os.environ['QQ_PASSWD']
        try:
            with open('./user') as fi:
                user = fi.readline().strip()
                pwd = fi.readline().strip()
        except:
            import getpass
            user = raw_input('QQ:')
            pwd = getpass.getpass('password: ')

        self.user = user
        self.pwd = pwd

        self.qq = webqq(user, pwd, msg_queue)
        self.qq.getSafeCode()
        self.qq.loginGet()
        self.qq.loginPost()
        self.qq.getGroupList()
        self.qq.getFriend()

        self.qq.setDaemon(True)
        self.qq.start()