|
@@ -0,0 +1,110 @@
|
|
|
|
|
+const _emojis = {
|
|
|
|
|
+ '[微笑]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/0.gif',
|
|
|
|
|
+ '[撇嘴]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/1.gif',
|
|
|
|
|
+ '[色]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/2.gif',
|
|
|
|
|
+ '[发呆]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/3.gif',
|
|
|
|
|
+ '[得意]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/4.gif',
|
|
|
|
|
+ '[流泪]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/5.gif',
|
|
|
|
|
+ '[害羞]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/6.gif',
|
|
|
|
|
+ '[闭嘴]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/7.gif',
|
|
|
|
|
+ '[睡]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/8.gif',
|
|
|
|
|
+ '[大哭]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/9.gif',
|
|
|
|
|
+ '[尴尬]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/10.gif',
|
|
|
|
|
+ '[发怒]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/11.gif',
|
|
|
|
|
+ '[调皮]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/12.gif',
|
|
|
|
|
+ '[呲牙]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/13.gif',
|
|
|
|
|
+ '[惊讶]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/14.gif',
|
|
|
|
|
+ '[难过]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/15.gif',
|
|
|
|
|
+ '[酷]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/16.gif',
|
|
|
|
|
+ '[冷汗]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/17.gif',
|
|
|
|
|
+ '[抓狂]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/18.gif',
|
|
|
|
|
+ '[吐]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/19.gif',
|
|
|
|
|
+ '[偷笑]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/20.gif',
|
|
|
|
|
+ '[可爱]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/21.gif',
|
|
|
|
|
+ '[白眼]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/22.gif',
|
|
|
|
|
+ '[傲慢]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/23.gif',
|
|
|
|
|
+ '[饥饿]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/24.gif',
|
|
|
|
|
+ '[困]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/25.gif',
|
|
|
|
|
+ '[惊恐]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/26.gif',
|
|
|
|
|
+ '[流汗]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/27.gif',
|
|
|
|
|
+ '[憨笑]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/28.gif',
|
|
|
|
|
+ '[大兵]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/29.gif',
|
|
|
|
|
+ '[奋斗]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/30.gif',
|
|
|
|
|
+ '[咒骂]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/31.gif',
|
|
|
|
|
+ '[疑问]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/32.gif',
|
|
|
|
|
+ '[嘘]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/33.gif',
|
|
|
|
|
+ '[晕]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/34.gif',
|
|
|
|
|
+ '[折磨]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/35.gif',
|
|
|
|
|
+ '[衰]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/36.gif',
|
|
|
|
|
+ '[骷髅]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/37.gif',
|
|
|
|
|
+ '[敲打]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/38.gif',
|
|
|
|
|
+ '[再见]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/39.gif',
|
|
|
|
|
+ '[擦汗]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/40.gif',
|
|
|
|
|
+ '[抠鼻]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/41.gif',
|
|
|
|
|
+ '[鼓掌]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/42.gif',
|
|
|
|
|
+ '[糗大了]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/43.gif',
|
|
|
|
|
+ '[坏笑]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/44.gif',
|
|
|
|
|
+ '[左哼哼]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/45.gif',
|
|
|
|
|
+ '[右哼哼]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/46.gif',
|
|
|
|
|
+ '[哈欠]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/47.gif',
|
|
|
|
|
+ '[鄙视]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/48.gif',
|
|
|
|
|
+ '[委屈]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/49.gif',
|
|
|
|
|
+ '[快哭了]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/50.gif',
|
|
|
|
|
+ '[阴险]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/51.gif',
|
|
|
|
|
+ '[亲亲]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/52.gif',
|
|
|
|
|
+ '[吓]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/53.gif',
|
|
|
|
|
+ '[可怜]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/54.gif',
|
|
|
|
|
+ '[菜刀]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/55.gif',
|
|
|
|
|
+ '[西瓜]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/56.gif',
|
|
|
|
|
+ '[啤酒]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/57.gif',
|
|
|
|
|
+ '[篮球]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/58.gif',
|
|
|
|
|
+ '[咖啡]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/60.gif',
|
|
|
|
|
+ '[饭]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/61.gif',
|
|
|
|
|
+ '[猪头]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/62.gif',
|
|
|
|
|
+ '[玫瑰]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/63.gif',
|
|
|
|
|
+ '[凋谢]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/64.gif',
|
|
|
|
|
+ '[示爱]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/65.gif',
|
|
|
|
|
+ '[爱心]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/66.gif',
|
|
|
|
|
+ '[心碎]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/67.gif',
|
|
|
|
|
+ '[蛋糕]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/68.gif',
|
|
|
|
|
+ '[炸弹]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/70.gif',
|
|
|
|
|
+ '[刀]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/71.gif',
|
|
|
|
|
+ '[足球]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/72.gif',
|
|
|
|
|
+ '[礼物]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/77.gif',
|
|
|
|
|
+ '[拥抱]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/78.gif',
|
|
|
|
|
+ '[强]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/79.gif',
|
|
|
|
|
+ '[弱]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/80.gif',
|
|
|
|
|
+ '[握手]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/81.gif',
|
|
|
|
|
+ '[胜利]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/82.gif',
|
|
|
|
|
+ '[抱拳]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/83.gif',
|
|
|
|
|
+ '[勾引]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/84.gif',
|
|
|
|
|
+ '[拳头]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/85.gif',
|
|
|
|
|
+ '[差劲]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/86.gif',
|
|
|
|
|
+ '[爱你]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/87.gif',
|
|
|
|
|
+ '[NO]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/88.gif',
|
|
|
|
|
+ '[OK]': 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/89.gif'
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const request = require('request')
|
|
|
|
|
+const fs = require('fs')
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// 下载图片
|
|
|
|
|
+const downImg = (url, filepath) => {
|
|
|
|
|
+ return new Promise((res, rej) => {
|
|
|
|
|
+ const stream = request(url).pipe(fs.createWriteStream(filepath))
|
|
|
|
|
+ stream.on('finish', res)
|
|
|
|
|
+ stream.on('error', rej)
|
|
|
|
|
+ })
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+(async () => {
|
|
|
|
|
+ let num = -1
|
|
|
|
|
+ for (const key in _emojis) {
|
|
|
|
|
+ const el = _emojis[key]
|
|
|
|
|
+ console.log(el);
|
|
|
|
|
+ num++
|
|
|
|
|
+ const path = process.cwd() + '/emoj/' + num + '.gif'
|
|
|
|
|
+ await downImg(el, path)
|
|
|
|
|
+ }
|
|
|
|
|
+})()
|