def getuuid(self):
        """
        @brief      Gets the uuid just used for login.
        @return     Bool: whether operation succeed.
        """
        url = self.wx_conf['API_jsLogin']
        params = {
            'appid': self.appid,
            'fun': 'new',
            'lang': self.wx_conf['LANG'],
            '_': int(time.time()),
        }
        data = post(url, params, False)
        regx = r'window.QRLogin.code = (\d+); window.QRLogin.uuid = "(\S+?)"'
        pm = re.search(regx, data)
        if pm:
            code = pm.group(1)
            self.uuid = pm.group(2)
            return code == '200'
        return False

        @brief      Gets the uuid just used for login.
        @return     Bool: whether operation succeed.
        
wxbot_project_py2.7/wechat/wechat_apis.py