项目介绍

CrippledByte/emotes-api 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,目前获得 19 个 Star、2 次 Fork。

仓库全名
CrippledByte/emotes-api
Star 数
19
Fork 数
2

README 摘要

emotes-api Fetches Twitch emotes from various providers (Twitch, 7TV, BTTV, FFZ). Endpoints /v1/channel/ / /v1/global/ Available providers: twitch, 7tv, bttv, ffz, all. Output Providers id | Provider | 0 | Twitch | 1 | 7TV | 2 | BTTV | 3 | FFZ | Setup 1. Register an app on dev.twitch.tv and enter the client ID and secret in .env. 2. Install requirements. 3. Run the server. Development Unit tests

完整内容见 GitHub 原始 README 或本页 。

常见问题

emotes-api 用什么语言开发?

主要使用 Python 编写,目前有 19 个 Star。

如何获取 emotes-api 的源码?

可以直接克隆仓库:git clone https://github.com/CrippledByte/emotes-api.git,默认分支为 dev;安装与运行步骤见仓库 README。

emotes-api 最近还在维护吗?

仓库最近一次更新为 2023年12月11日,当前没有未关闭的 Issue;Star 数为 19,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

API that fetches Twitch emotes from various providers (Twitch, 7TV, BTTV, FFZ).

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
25
价值分
12
活跃状态
活跃

语言占比

Dockerfile
Procfile
Python

Release

贡献者

README

emotes-api

Fetches Twitch emotes from various providers (Twitch, 7TV, BTTV, FFZ).

Clang analysis

Endpoints

  • /v1/channel/<username>/<provider>
  • /v1/global/<provider>

Available providers: twitch, 7tv, bttv, ffz, all.

Output

[
  {
    "animated": false,
    "code": "FeelsDankMan",
    "provider": 1,
    "urls": [
      {
        "size": "1x",
        "url": "https://cdn.7tv.app/emote/63071bb9464de28875c52531/1x.webp"
      },
      {
        "size": "2x",
        "url": "https://cdn.7tv.app/emote/63071bb9464de28875c52531/2x.webp"
      },
      {
        "size": "3x",
        "url": "https://cdn.7tv.app/emote/63071bb9464de28875c52531/3x.webp"
      },
      {
        "size": "4x",
        "url": "https://cdn.7tv.app/emote/63071bb9464de28875c52531/4x.webp"
      }
    ],
    "zero_width": false
  },
]

Providers

id Provider
0 Twitch
1 7TV
2 BTTV
3 FFZ

Setup

  1. Register an app on dev.twitch.tv and enter the client ID and secret in .env.
  2. Install requirements.
pip3 install -r requirements.txt
  1. Run the server.
gunicorn --preload --bind 0.0.0.0:8000 app:app

Development

  • Unit tests
python3 -m unittest

评论

暂无评论