Python Wrapper for DiscordEmoji API
Project description
Docs | DiscordEmojiPy - DiscordEmoji API Wrapper for Python
EN Docs
Installation
pip install demojipy
Search:
from DEmojiPython import DEmoji
DEmoji.attr
Available attributes:
Attribute | Parameters | Return | Description |
---|---|---|---|
search_by_id() | emojiid: int | dict | Fetch DiscordEmoji's Emoji by id |
search_by_name() | name: str | dict | Fetch DiscordEmoji's Emoji by name |
search_by_author() | author: str | list[dict] | Fetch DiscordEmoji's Emojis submitted by an user |
search_emojis() | search: str | list[dict] | Fetch emojis you want to search |
stats() | None | dict | Fetch DiscordEmoji's stats |
packs() | None | list[dict] | Fetch DiscordEmoji's emoji packs |
Examples:
from DEmojiPython import DEmoji
# Code
DEmoji.search_by_id(1)
# Response
{'id': 1, 'title': 'zombie', 'slug': 'zombie', 'image': 'https://discordemoji.com/assets/emoji/zombie.png', ...}
# Code
DEmoji.search_by_name('zombie') # must be case insensitive
# Response:
{'id': 1, 'title': 'zombie', 'slug': 'zombie', 'image': 'https://discordemoji.com/assets/emoji/zombie.png', ...}
# Code
DEmoji.search_by_author('Kohai') # must be case insensitive
# Response
[{'title': 'emoji', 'submitted_by': 'Kohai'},
{'title': 'emojiTwo', 'submitted_by': 'Kohai'}...]
# Code
DEmoji.search_emojis('PR_')
# Response
[{'id': 3830, 'title': 'PR_bug', ...}, ...]
# If not found, returns None
# Code
DEmoji.stats()
# Response:
{"emoji": int,"users": int,"faves": int,"pending_approvals": int}
# Code
DEmoji.packs()
#Response:
[{"id":2,"name":"Anime Pack #1", ...}, ...]
More attributes are coming soon...
If there is any grammar error call me at Discord: Alguem#7724
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
demojipy-1.3.0.tar.gz
(2.9 kB
view details)
File details
Details for the file demojipy-1.3.0.tar.gz
.
File metadata
- Download URL: demojipy-1.3.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d84f1d16e5ee1412913b34c0ee53abe06b8bc5411d7c7dd7b01d1a87e0fc5465 |
|
MD5 | 44ac0554601669eab0edc4b1f1fc4ccd |
|
BLAKE2b-256 | 32985374fb65df9f51e28eef8a312b03a244620da432fb391016b03128b560d7 |