1.0.4 • Published 7 years ago

weiboticons v1.0.4

Weekly downloads
120
License
MIT
Repository
github
Last release
7 years ago

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">';
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago