weiboticons

1.0.4 • Public • Published

This generates json files that list the emoticons returned by the Weibo API endpoint http://open.weibo.com/wiki/2/emotions

List of Generated Files:

To generate the json files, use the weibo_emoji_scraper.py python script.

python weibo_emoji_scraper.py --key "<YOUR_WEIBO_KEY>" --secret "<YOUR_WEIBO_SECRET>" --token "<YOUR_wEIBO_TOKEN>"

Included also is a simple js library (minified) that you can use to convert Weibo emoji phrases into their images:

weibo_emoji_text = 'Aweseome! [害羞][赞]';
new_text = weiboticons.replace(weibo_emoji_text); // 'Awesome! <img class="weiboticon" title="[害羞]" src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/6e/shamea_org.gif"><img class="weiboticon" title="[赞]" src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/d0/z2_org.gif">';

Readme

Keywords

Package Sidebar

Install

npm i weiboticons

Weekly Downloads

266

Version

1.0.4

License

MIT

Last publish

Collaborators

  • taengstagram