推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
tqccc
V2EX  ›  Python

请问哪位大神知道 Python 用 itchat 获得的微信好友信息的 SnsFlag 字段具体指什么意思?

  •  
  •   tqccc · Oct 6, 2017 · 4110 views
    This topic created in 3228 days ago, the information mentioned may be changed or developed.

    请问哪位大神知道 python 用 itchat 获得的微信好友信息的 SnsFlag 字段具体指什么意思? 是有关社交活跃程度的吗?

    {
        "Uin": 0,
        "UserName": 用户名称,一个"@"为好友,两个"@"为群组
        "NickName": 昵称
        "HeadImgUrl":头像图片链接地址
        "ContactFlag": 1-好友,2-群组,3-公众号
        "MemberCount": 成员数量,只有在群组信息中才有效,
        "MemberList": 成员列表,
        "RemarkName": 备注名称
        "HideInputBarFlag": 0,
        "Sex": 性别,0-未设置(公众号、保密),1-男,2-女
        "Signature": 公众号的功能介绍 or 好友的个性签名
        "VerifyFlag": 0,
        "OwnerUin": 0,
        "PYInitial": 用户名拼音缩写
        "PYQuanPin": 用户名拼音全拼
        "RemarkPYInitial":备注拼音缩写
        "RemarkPYQuanPin": 备注拼音全拼
        "StarFriend": 是否为星标朋友  0-否  1-是
        "AppAccountFlag": 0,
        "Statues": 0,
        "AttrStatus": 119911,
        "Province": 省
        "City": 市
        "Alias": 
    
        "SnsFlag": 17
    
        "UniFriend": 0,
        "DisplayName": "",
        "ChatRoomId": 0,
        "KeyWord": 
        "EncryChatRoomId": ""
    

    }

    4 replies    2017-10-09 23:52:49 +08:00
    rwdy2008
        1
    rwdy2008  
       Oct 6, 2017 via iPhone
    M
    tqccc
        2
    tqccc  
    OP
       Oct 7, 2017
    @rwdy2008 嗯?
    lsido
        3
    lsido  
       Oct 7, 2017   ❤️ 1
    "ContactFlag": 1-好友,2-群组,3-公众号

    这个东西总感觉有些问题

    测试了 100 多个微信

    发现 ContactFlag 不是固定的,比如 ContactFlag=3 基本都是好友,又比如 ContactFlag=1 基本都是公众号,又比如 ContactFlag=1,60%好友 40%公众号,我都整懵逼了
    tqccc
        4
    tqccc  
    OP
       Oct 9, 2017 via Android
    @lsido 就是很好奇,搜遍了,这些字段,这个库和微信官方都没有具体说明
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1338 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 17:11 · PVG 01:11 · LAX 10:11 · JFK 13:11
    ♥ Do have faith in what you're doing.