From 77e244672a2d7deed843dbea1b47522d2d2d7095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E4=B8=96=E9=BE=99?= Date: Wed, 19 Oct 2016 08:59:36 +0800 Subject: [PATCH] import httplib use in try except --- weixin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/weixin.py b/weixin.py index 7d94e2d..240a7f0 100755 --- a/weixin.py +++ b/weixin.py @@ -15,6 +15,7 @@ import random import multiprocessing import platform import logging +import httplib from collections import defaultdict from urlparse import urlparse from lxml import html @@ -337,10 +338,10 @@ class WebWeixin(object): 'webpush.wechat.com', 'webpush1.wechat.com', 'webpush2.wechat.com', + 'webpush1.wechatapp.com', + 'webpush.wechatapp.com', 'webpush.wx.qq.com', 'webpush.wx2.qq.com', - #'webpush1.wechatapp.com', - #'webpush.wechatapp.com', ] for host in SyncHost: self.syncHost = host