Giter Club home page Giter Club logo

wechat-emoticon's Introduction

微信表情轰炸器

终端版微信表情轰炸器

1000+自定义表情(未整理,存在不可描述的福利表情,慎用,不要搞♂事)

运行

git clone https://github.com/spacelan/wechat-emoticon.git
cd wechat-emoticon
npm install
node index.js

使用

见终端提示

原理

自定义表情资源来自emoticons.json,包括表情的URL和MD5

微信网页版发送自定义表情实际上是发送的表情的MD5

微信API由wechat4u支持

wechat4u可能是目前唯一能发送表情的JS库

如何抓自定义表情

微信网页版通过https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsyncAPI获取新消息

返回数据中,一个微信消息主要由以下部分组成

{
"MsgId": "11973880366746079",
"FromUserName": "@7f29b95a33028240f631dda0eecb49f",
"ToUserName": "filehelper",
"MsgType": 47,
"Content": "<msg><emoji fromusername = \"23423asf\" tousername = \"filehelper\" type=\"2\" idbuffer=\"media:0_0\" md5=\"325e6f67bf0bf95b58ca1e0d7cc51821\" len = \"494186\" productid=\"\" androidmd5=\"325e6f67bf0bf95b58ca1e0d7cc51821\" androidlen=\"494186\" s60v3md5 = \"325e6f67bf0bf95b58ca1e0d7cc51821\" s60v3len=\"494186\" s60v5md5 = \"325e6f67bf0bf95b58ca1e0d7cc51821\" s60v5len=\"494186\" cdnurl = \"http://emoji.qpic.cn/wx_emoji/xmrm0xnjtnahibtFOjQ7ywClrojsNQYOPyickj9Yo7D0NEa16DBl5GJA/\" designerid = \"\" thumburl = \"\" encrypturl = \"http://emoji.qpic.cn/wx_emoji/CvEmibBOcGYhrj1gCOCs48L4OdgAtuuyJueljF440oic4r8j6KPRkDfw/\" aeskey= \"caee1393b6427c72e35fef94d277d00b\" width= \"85\" height= \"85\" ></emoji> <gameext type=\"0\" content=\"0\" ></gameext></msg>",
...
}

MsgType == 47为表情消息

然后可以从Content中提取md5cdnurl(商店表情无法提取)

md5用来向别人发送表情

cdnurl用来直接下载表情,不需要认证

更详细的请查看代码index.js

wechat-emoticon's People

Contributors

spacelan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.