From 8d0fea809152ec34cf2c552e7247fe6152c5d718 Mon Sep 17 00:00:00 2001 From: YuJian Date: Fri, 26 Feb 2016 09:27:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=B9=E9=85=8Dxml=E4=B8=ADCDATA=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weixin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/weixin.py b/weixin.py index 298225d..9500b44 100755 --- a/weixin.py +++ b/weixin.py @@ -801,6 +801,7 @@ class WebWeixin(object): if pm: return pm.group(1) elif fmat == 'xml': pm = re.search('<{0}>([^<]+)'.format(key),content) + if not pm: pm = re.search('<{0}><\!\[CDATA\[(.*?)\]\]>'.format(key),content) if pm: return pm.group(1) return '未知'