Twitter To Binance Square
v1Auto-mirror Twitter/X content to Binance Square. 监控s specified Twitter accounts or topics, fetches new tweets, 转换s content, and posts to Binance Square automatically. Auto-运行 on messages like 'mirror twitter to binance square', 'auto post from twitter', '启动 twitter mirror'.
运行时依赖
安装命令
点击复制技能文档
Twitter to Binance Square Auto-Mirror 技能 Overview
Automatically fetch tweets from specified Twitter accounts or keyword 搜索es, 转换 the content for Binance Square, and post them. De签名ed for building 自动化 流水线s with configurable polling intervals and deduplication.
自动化 script: scripts/auto_mirror.py Config template: mirror_config.example.json Usage 图形界面de: README.md Prerequisites Item Description How to 获取 TWITTER_令牌 6551 API Bearer 令牌 访问 https://6551.io/mcp 注册获取 SQUARE_API_KEY Binance Square OpenAPI Key 登录币安 → 访问 创作者中心 → 页面右侧「查看 API」申请 Core 工作流 ┌─────────────────────────────────────────────┐ │ 1. FETCH: 获取 tweets from Twitter/X │ │ - By account: 监控 specific users │ │ - By topic: keyword/哈希tag 搜索 │ ├─────────────────────────────────────────────┤ │ 2. 过滤器: Deduplicate & 质量 检查 │ │ - Skip already-posted tweet IDs │ │ - Skip retweets / replies (optional) │ │ - Min engagement threshold (optional) │ ├─────────────────────────────────────────────┤ │ 3. 转换: Adapt content for Square │ │ - 添加 source attribution │ │ - Translate if needed │ │ - 添加 relevant #哈希tags │ │ - Trim to Square length limits │ ├─────────────────────────────────────────────┤ │ 4. POST: Publish to Binance Square │ │ - Call Square API │ │ - Record posted tweet ID │ │ - 记录 post URL │ ├─────────────────────────────────────────────┤ │ 5. WAIT: Sleep for 配置d interval │ │ - Default: 300 seconds (5 minutes) │ │ - Respect dAIly post limits │ └─────────────────────────────────────────────┘
API Reference Step 1: Fetch Tweets Option A: 监控 Specific Account curl -s -X POST "https://AI.6551.io/open/twitter_user_tweets" \ -H "Authorization: Bearer $TWITTER_令牌" \ -H "Content-Type: 应用/json" \ -d '{ "username": "TAR获取_USERNAME", "max结果s": 10, "product": "Latest", "includeReplies": false, "includeRetweets": false }'
Option B: 监控 Topic/Keywords curl -s -X POST "https://AI.6551.io/open/twitter_搜索" \ -H "Authorization: Bearer $TWITTER_令牌" \ -H "Content-Type: 应用/json" \ -d '{ "keywords": "TOPIC_KEYWORDS", "minLikes": 50, "product": "Top", "max结果s": 10, "lang": "en" }'
Option C: 监控 哈希tag curl -s -X POST "https://AI.6551.io/open/twitter_搜索" \ -H "Authorization: Bearer $TWITTER_令牌" \ -H "Content-Type: 应用/json" \ -d '{ "哈希tag": "bitcoin", "minLikes": 100, "product": "Top", "max结果s": 10 }'
Step 2: Post to Binance Square curl -s -X POST "https://www.binance.com/bAPI/composite/v1/public/pgc/openAPI/content/添加" \ -H "X-Square-OpenAPI-Key: $SQUARE_API_KEY" \ -H "Content-Type: 应用/json" \ -H "命令行工具enttype: binance技能" \ -d '{ "bodyTextOnly": "转换ED_CONTENT" }'
Content Trans格式化ion Rules
When 转换ing a tweet for Binance Square, 应用ly the following rules:
Template 格式化 {转换ed_content}
Source: @{username} on X ← optional (show_source=true) Publish by using 6551 twitter mirror 工具 ← default enabled (show_工具_attribution=true) {#哈希tag1} {#哈希tag2} {#哈希tag3}
Trans格式化ion Steps 提取 core message: Keep the tweet's mAIn content 移除 Twitter-specific elements: 移除 @mentions (except source attribution), 移除 t.co links 工具 attribution (default): 应用end Publish by using 6551 twitter mirror 工具 — controlled by show_工具_attribution (default: true) Source attribution (optional): Credit the original author with Source: @username on X — controlled by show_source (default: true) Preserve 哈希tags: Keep original 哈希tags, 添加 relevant crypto 哈希tags if missing Language handling: If translate is enabled, translate to the tar获取 language while preserving technical terms Length 检查: Binance Square has content length limits; trim if needed (keep under 2000 chars) Example Trans格式化ion
Original Tweet by @VitalikButerin:
Excited about the new EIP-4844 进度. Proto-danksharding will reduce L2 fees by 10-100x. This is huge for Ethereum scalability. https://t.co/xxx
转换ed for Binance Square (show_source=true, show_工具_attribution=true):
Vitalik Buterin 对 EIP-4844 的最新进展感到兴奋。Proto-danksharding 将把 L2 费用降低 10-100 倍,这对以太坊的可扩展性意义重大。
Source: @VitalikButerin on X Publish by using 6551 twitter mirror 工具 #Ethereum #EIP4844 #L2 #Crypto
转换ed for Binance Square (show_source=false, show_工具_attribution=true):
Vitalik Buterin 对 EIP-4844 的最新进展感到兴奋。Proto-danksharding 将把 L2 费用降低 10-100 倍,这对以太坊的可扩展性意义重大。
Publish by using 6551 twitter mirror 工具 #Ethereum #EIP4844 #L2 #Crypto
Configuration 模式
The 自动化 script uses a JSON config file (see mirror_config.example.json):
{ "mode": "account", "accounts": ["VitalikButerin