{"id":27876583,"url":"https://github.com/holgerhuo/mastodon-trending-bot","last_synced_at":"2026-04-29T01:32:10.730Z","repository":{"id":196621871,"uuid":"365677033","full_name":"HolgerHuo/mastodon-trending-bot","owner":"HolgerHuo","description":"A mastodon trending bot that aggregates trending tags from json api and toot with python!","archived":false,"fork":false,"pushed_at":"2025-04-16T10:31:25.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T02:52:10.081Z","etag":null,"topics":["bot","mastodon","mastodon-bot","python","python3"],"latest_commit_sha":null,"homepage":"https://mast.dragon-fly.club/@island_trending","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HolgerHuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-05-09T05:45:37.000Z","updated_at":"2025-04-16T10:31:28.000Z","dependencies_parsed_at":"2025-05-05T02:50:10.984Z","dependency_job_id":"d40f9ce6-db89-4d6e-886e-b9f871aa3a58","html_url":"https://github.com/HolgerHuo/mastodon-trending-bot","commit_stats":null,"previous_names":["holgerhuo/mastodon-trending-bot"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/HolgerHuo/mastodon-trending-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HolgerHuo%2Fmastodon-trending-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HolgerHuo%2Fmastodon-trending-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HolgerHuo%2Fmastodon-trending-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HolgerHuo%2Fmastodon-trending-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HolgerHuo","download_url":"https://codeload.github.com/HolgerHuo/mastodon-trending-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HolgerHuo%2Fmastodon-trending-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32407164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","mastodon","mastodon-bot","python","python3"],"created_at":"2025-05-05T02:50:06.259Z","updated_at":"2026-04-29T01:32:10.716Z","avatar_url":"https://github.com/HolgerHuo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mastodon Trending Bot\n\n![GitHub last commit](https://img.shields.io/github/last-commit/holgerhuo/mastodon-trending-bot)![GitHub release (latest by date)](https://img.shields.io/github/v/release/holgerhuo/mastodon-trending-bot)![GitHub](https://img.shields.io/github/license/holgerhuo/mastodon-trending-bot)![GitHub all releases](https://img.shields.io/github/downloads/holgerhuo/mastodon-trending-bot/total)![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/holgerhuo/mastodon-trending-bot)\n\nA mastodon trending bot that aggregates trending tags from json api and toot with python!\n\n用 Python 实现的定时推送Mastodon流行标签机器人\n\n[Example 示例](https://mast.dragon-fly.club/@trends)\n\n## Usage 用法\n\nClone the repository, enter the directory, change configurations file and run mtb.py using python3. You may specify a config.json adding directly to the arguments.\n\n克隆仓库，修改配置文件，使用Python3运行mtb.py。可通过参数自定义配置文件路径\n\n```bash\ngit clone https://github.com/HolgerHuo/mastodon-trending-bot.git mtb\ncd mtb\npip3 install -r requirements.txt # install dependencies\nvim config.json # if necessary\npython3 mtb.py # or using python3 mtb path_to_config \n```\n\n## Configurations 配置文件\n\n```json\n{\n    \"MTB_APP_NAME\": \"MastodonTrendingBot\",\n    \"MTB_SOURCE_INSTANCE\": \"https://mast.dragon-fly.club\",\n    \"MTB_DEST_INSTANCE\": \"https://botsin.space\",\n    \"MTB_APP_SECURE_TOKEN\": \"xxxxxx\",\n    \"MTB_STATUS_VISIBILITY\": \"public\",\n    \"MTB_STATUS_BODY\": \"#当下流行 \\n嘟嘟嘟！这是本时段 Island岛屿 的流行标签 \\n要记得善用Hashtags来帮助联邦宇宙发现你的嘟文噢～ \\n\\n\",\n    \"MTB_BLACKLIST_PATH\": \"blacklist.txt\",\n    \"MTB_NO_TRENDS_STATUS\": \"#当下流行 \\n当下没有流行标签哦～\\n大家可以使用Hashtags帮助你的嘟文被快速发现w！\"\n}\n```\n**MTB_APP_NAME**: App name, used when tooting and displayed on web interface 机器人名称，会显示在Web界面中\n\n**MTB_SOURCE_INSTANCE**: Trending tags source instance 获取流行信息的实例\n\n**MTB_DEST_INSTANCE**: Toot destination instance 嘟文发送至的实例\n\n**MTB_APP_SECURE_TOKEN**: Bot account token 机器人账户密钥 https://instance.tld/settings/applications\n\n**MTB_STATUS_VISIBILITY**: Toot visibility 嘟文可见度 (public, unlisted)\n\n**MTB_STATUS_BODY (Optional 可选)**:  Personalized toot body 自定义嘟文内容 \n\n**MTB_BLACKLIST_PATH (Optional 可选)**: Specifying blacklist file path 黑名单路径\n\n**MTB_NO_TRENDS_STATUS (Optional 可选)**: Status to post when no tags trending 无当下流行标签时的嘟文\n\n\n**Blacklist 黑名单**\n\nWrite your blacklist tags one per line, or leave it empty. Recomment to write the ones used in status body\n\n每行一条黑名单标题，推荐将嘟文正文内容中的tag拉黑。\n\n```text\nnsfw\n当下流行\naaa\n```\n\n## License 许可协议\n\nGNU GPL v3 or above\n\n\n\n[@holgerhuo@dragon-fly.club](https://mast.dragon-fly.club/@holgerhuo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholgerhuo%2Fmastodon-trending-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholgerhuo%2Fmastodon-trending-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholgerhuo%2Fmastodon-trending-bot/lists"}