Skip to content
This repository has been archived by the owner on Jul 18, 2021. It is now read-only.

修复获取通讯录问题 #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

修复获取通讯录问题 #84

wants to merge 1 commit into from

Conversation

zs1379
Copy link

@zs1379 zs1379 commented Jan 8, 2016

通过pass_ticket获取通讯录列表在刚才貌似没法使用了,看了下好像更换成了cookie中的webwx_data_ticket

通过pass_ticket获取通讯录列表在刚才貌似没法使用了,看了下好像更换成了cookie中的webwx_data_ticket
@knight42
Copy link
Contributor

knight42 commented Jan 9, 2016

请注意下与 python 3 的兼容.

@a284628487
Copy link

python3下会有个错误,在484行,
map(lambda x: '#', progress[:(progress_len * (i + 1)) / group_num]))
其实很简单,改成
map(lambda x: '#', progress[:int((progress_len * (i + 1)) / group_num])))
就行了

@lengly
Copy link
Contributor

lengly commented Jan 13, 2016

为什么这事情 你们要用map lambda来做。。。

@MiningLiTeng
Copy link

woo .this good!

@0x5e
Copy link
Owner

0x5e commented Jan 17, 2016

@zs1379 可能是微信网页版有好几个网址的缘故,我这边还是可以获取到的
pass_ticket传着应该没关系的,你的意思是CookieJar要换成LWPCookieJar吗

@DGideas
Copy link

DGideas commented Jan 28, 2016

建议用wdf_urllib

注意和Python3的兼容

@0x5e
Copy link
Owner

0x5e commented Jan 28, 2016

@DGideas 好像各地登录的微信服务器不同,可否看下你那边redirect_url是什么,我这边这一步是正常的,在添加群组的时候被加了频率限制,已经用不了了,所以就没维护了..

@ghost
Copy link

ghost commented Dec 29, 2018

Traceback (most recent call last):
File "C:/Users/SZNT/Desktop/wdf.py", line 570, in
main()
File "C:/Users/SZNT/Desktop/wdf.py", line 496, in main
UserNames)
File "C:/Users/SZNT/Desktop/wdf.py", line 299, in createChatroom
data = r.json()
File "C:\Users\SZNT\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\SZNT\AppData\Local\Programs\Python\Python36-32\lib\json_init_.py", line 354, in loads
return _default_decoder.decode(s)
File "C:\Users\SZNT\AppData\Local\Programs\Python\Python36-32\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\SZNT\AppData\Local\Programs\Python\Python36-32\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants