← 返回
未分类 Key 中文

Bitly URL Shortner and Manager

Bitly URL Shortner and Manager for a local Windows OpenClaw workspace. Use when the user wants to log into Bitly with locally stored credentials, validate au...
用于本地 Windows OpenClaw 工作区的 Bitly URL缩短与管理工具。当用户需要使用本地存储的凭证登录 Bitly 并进行身份验证时使用。
stanestane stanestane 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 350
下载
💾 0
安装
1
版本
#latest

概述

Bitly URL Shortner and Manager

Use the official Bitly API through a local CLI that reads secrets from a local .env file outside the skill folder.

Local secret storage

Store real credentials in a local env file outside the skill folder.

Recommended approaches:

  • set BITLY_ENV_FILE to point at your local env file
  • or export BITLY_CLIENT_ID, BITLY_CLIENT_SECRET, BITLY_ACCESS_TOKEN, and optional BITLY_DEFAULT_GROUP_GUID directly in the shell

The skill does not need secrets embedded inside the published skill folder.

Example env file shape is documented in:

  • references/env-example.md

Quick start

Validate auth:

python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py whoami

List groups:

python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py groups

List recent links:

python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py bitlinks --limit 10

Search/filter links:

python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py search --query "etsy" --limit 20 --tag t-shirts

Shorten one URL:

python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py shorten --long-url "https://example.com/page"

Shorten many URLs from a txt file:

python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py bulk-shorten --input "C:\path\to\urls.txt" --output "C:\path\to\results.json"

Export links for other workflows:

python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py export-links --tag t-shirts --format txt --output "C:\path\to\bitly-links.txt"

Inspect a bitlink:

python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py expand --bitlink "bit.ly/abc123"

Get clicks for a bitlink:

python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py clicks --bitlink "bit.ly/abc123" --unit day --limit 30

Workflow

  1. Set Bitly credentials in shell environment variables.
  2. Run whoami first when verifying a new setup.
  3. Use groups if you need the correct group_guid.
  4. Use bitlinks, search, and filters to inspect existing links.
  5. Use shorten or bulk-shorten to create new links.
  6. Use export-links to hand clean link sets to other tools or skills.
  7. Feed resulting links into x-post-prep or another social workflow.

Commands

  • whoami — verify auth and inspect account info
  • groups — list accessible groups
  • bitlinks --limit N [--query TEXT] — list recent links in a group
  • search --query TEXT --limit N — search links by text
  • shorten --long-url URL — create a new short link
  • expand --bitlink bit.ly/abc123 — inspect an existing bitlink
  • clicks --bitlink bit.ly/abc123 — fetch click metrics
  • create-custom --bitlink bit.ly/abc123 --custom-bitlink yourdomain.com/name — try to create a custom alias
  • bulk-shorten --input urls.txt — shorten many URLs from a local txt file
  • export-links --format json|txt|csv --output file — export filtered link sets
  • env-template — print or write a local env template

List/search/export commands support filters like:

  • --tag
  • --domain
  • --contains

Many list-style commands also support --csv for flatter output.

OAuth / callback note

For a local desktop-style setup, use:

  • http://127.0.0.1:8765/callback

Optionally also add:

  • http://localhost:8765/callback

Pairing with other skills

This skill pairs naturally with:

  • x-post-prep for adding short links into prepared post files
  • x-poster for later scheduling or posting those linked posts

Resources

scripts/

  • bitly_manager.py — local Bitly CLI for account, link, metrics, export, and batch operations

references/

  • api-notes.md — Bitly endpoint notes
  • env-example.md — non-secret example of the local env file shape

example of the local env file shape

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-08 01:55 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 681 📥 329,337
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 196 📥 67,946
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 75 📥 182,412