1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/ArvinZJC-WeiboEmoji

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
README.md 2.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
ArvinZJC Отправлено 11.03.2023 13:06 4bc29b5

WeiboEmoji/src/Weibo Emoji Update Checker

English (United Kingdom) | 中文(简体,中国)

Weibo Emoji Update Checker uses the emotions API officially provided by Weibo to retrieve and store a list of Weibo's Emoji image info in a JSON data file. The file is essential and processed to help generate a new release.

❗ ATTENTION

May I have your attention pls? 🔥

  1. By 11 March 2023, everything looks good with Visual Studio Code (Version: 1.76.1) + Python 3.9. The primary packages of the update checker are listed in the following table. For more info, please refer to requirements.txt under the update checker's src directory.

    Name Version
    onepush 1.2.0
    python-dotenv 1.0.0
  2. You could manually create a file named .env under the update checker's root directory and contain the following content. Please note that it is optional, and that the update checker should work well without it.

    # Set the following environment variables to allow sending messages to your Telegram bot.
    TG_BOT_TOKEN=<your Telegram bot token>
    TG_USER_ID=<your Telegram user ID>
    
    WB_ACCESS_TOKEN=<your Weibo API access token>  # Set this environment variable to allow retrieving data from Weibo API.

    You may find the following links useful.

    If all configurations are in place, the script updater.py can be executed successfully to generate/update the JSON data file as per the search results.

  3. The update checker is designed to deploy on the Aliyun FC to check dialy if any update is available for the stock list. Please note that the package python-dotenv is not required in this case, and you need to configure the environment variables in your function configurations. You can refer to requirements_fc.txt to install packages via the online IDE using the following command.

    pip3 install -r requirements_fc.txt -t .

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/ArvinZJC-WeiboEmoji.git
git@api.gitlife.ru:oschina-mirror/ArvinZJC-WeiboEmoji.git
oschina-mirror
ArvinZJC-WeiboEmoji
ArvinZJC-WeiboEmoji
main