Skip to content

How to convert Skype tags and symbols to smiles? #230

Answered by Terrance
mihalt asked this question in Q&A
Discussion options

You must be logged in to vote

If you mean resolving markup like (sad) into the corresponding emoticons, you probably want to take a look at SkypeUtils.static -- this is a dict of metadata about the emoticons that Skype provides. For example:

>>> tag = "(sad)"
>>> for item in SkypeUtils.static["items"]:
...   if tag in item["shortcuts"]:
...     print(item)
...
{'description': 'Sad',
 'etag': 'e34deb20-f8f5-4b53-ab00-468ccacfac69',
 'facebook': {'shortcuts': [':(']},
 'id': 'sad',
 'keywords': [],
 'media': {'default': {'firstFrame': 17, 'fps': 24, 'framesCount': 63}},
 'shortcuts': [':(', ':-(', ':=(', '(sad)', '(Sad)', ':<', ':-<', ':(', ':-(', ':=(', '(sad)', '(Sad)', ':<', ':-<'],
 'type': 'emoticon',
 'useInSms': T…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@mihalt
Comment options

Answer selected by Terrance
Comment options

You must be logged in to vote
2 replies
@Terrance
Comment options

@mihalt
Comment options

Comment options

You must be logged in to vote
1 reply
@Terrance
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants