weiboticons

Utilities for working with Weibo emojis.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
weiboticons
101.0.46 years ago6 years agoMinified + gzip package size for weiboticons in KB

Readme

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 weiboemojiscraper.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">';