A lightweight utility for resolving emojis into local asset paths and Twemoji URLs. Supports PNG and SVG assets.
- Resolve local Twemoji asset paths
- Resolve URLs for PNG/SVG assets
pip install twemoji-apifrom twemoji_api.api import get_emoji_path, get_emoji_url
print(get_emoji_path("🔥"))
print(get_emoji_url("🔥"))Returns the asset folder (72x72 or svg).
Returns the local file path for an emoji.
Returns the Twemoji GitHub URL for the asset.
MIT
This project includes graphics from Twemoji. Copyright 2019 Twitter, Inc and other contributors. Licensed under CC-BY 4.0: https://creativecommons.org/licenses/by/4.0/ No changes were made.