Skip to main content

Claude Code plugin: đánh nhãn URL cho phân tích organic traffic theo chủ đề (SEO). Hỗ trợ đến 75,000 hàng.

Project description

url-labeler

Công cụ đánh nhãn URL theo chủ đề nội dung cho phân tích organic traffic SEO.
Chạy trong Claude Desktop App hoặc Claude Code — không cần viết code.

Hỗ trợ đến 75,000 hàng. Kết hợp rule-based (miễn phí) + Claude Batch API (~$0.02–0.10).


Cài đặt

Yêu cầu

2 lệnh là xong

pip install url-labeler
url-labeler-install

Lệnh url-labeler-install tự động cấu hình tất cả:

Môi trường Sau khi cài Cần thêm
Claude Desktop App ✅ Sẵn sàng Tắt + mở lại App
Claude Code — MCP tools ✅ Sẵn sàng Không
Claude Code — slash commands ✅ Sẵn sàng Mở terminal mới

Sau khi chạy url-labeler-install

Claude Desktop App:

  1. Tắt hoàn toàn (Cmd+Q trên Mac, không chỉ đóng cửa sổ)
  2. Mở lại — biểu tượng 🔧 trong chat = cài đặt thành công

Claude Code:

  • MCP tools hoạt động ngay, không cần làm gì thêm
  • Slash commands (/url-labeler:start): mở terminal mới, hoặc chạy source ~/.zshrc

Cài đặt thủ công (nếu muốn)

Mở rộng để xem

Claude Desktop App

Thêm vào file cấu hình:

Hệ điều hành Đường dẫn
macOS ~/Library/Application Support/Claude/claude_desktop_config.json
Windows %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "url-labeler": {
      "command": "url-labeler-server"
    }
  }
}

Claude Code

Thêm vào ~/.claude/settings.json:

{
  "mcpServers": {
    "url-labeler": {
      "command": "url-labeler-server"
    }
  }
}

Để dùng slash commands, thêm vào ~/.zshrc hoặc ~/.bashrc:

function claude() { command claude --plugin-dir ~/.local/share/url-labeler/plugin "$@"; }

Sử dụng

Cách đơn giản nhất

Trong Claude Desktop App hoặc Claude Code, gõ:

Đánh nhãn file URL này cho tôi: /Users/ten/data.csv

hoặc với Google Sheets:

Đánh nhãn file URL này cho tôi: https://docs.google.com/spreadsheets/d/ID/edit

Claude sẽ hỏi 4 câu ngắn rồi tự xử lý:

  1. Tên thương hiệu
  2. Domain
  3. Mục đích phân tích
  4. Nhãn mẫu bạn muốn dùng

Slash commands (Claude Code)

/url-labeler:start          # Chạy toàn bộ pipeline (khuyến nghị)
/url-labeler:build-labels   # Chỉ xây danh sách nhãn
/url-labeler:label-data     # Chỉ đánh nhãn
/url-labeler:review-labels  # Chỉ review kết quả

Kết quả lưu tại ./labeled_output.xlsx (có thể chỉ định đường dẫn khác).


Định dạng dữ liệu đầu vào

File CSV / Excel / Google Sheets cần có 3 cột (tên cột nhận dạng tự động):

URL Keywords Organic Traffic
https://example.com/ trang chủ 5000
https://example.com/may-giat/ máy giặt lg 1200

Google Sheets: chia sẻ ở chế độ "Anyone with the link can view".


API Key

Lần đầu chạy, Claude sẽ hỏi Anthropic API key.
Lấy key tại: console.anthropic.com → API Keys

Key được lưu tại ~/.anthropic_key — các lần sau không cần nhập lại.


Hiệu suất & Chi phí

Số URL Rule-based Claude Batch API Chi phí API
5,000 < 2 giây 10–15 phút ~$0.005
20,000 < 2 giây 15–20 phút ~$0.02
75,000 < 3 giây 20–40 phút ~$0.08

85–90% hàng xử lý bằng rule-based (miễn phí). Chỉ phần còn lại gọi Claude API.


License

MIT © maytinh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

url_labeler-1.3.0.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

url_labeler-1.3.0-py3-none-any.whl (43.6 kB view details)

Uploaded Python 3

File details

Details for the file url_labeler-1.3.0.tar.gz.

File metadata

  • Download URL: url_labeler-1.3.0.tar.gz
  • Upload date:
  • Size: 36.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for url_labeler-1.3.0.tar.gz
Algorithm Hash digest
SHA256 2af79b494844bc1328dc3cc17f2eb7827b7747f887dc5c08ee94e42b4e769064
MD5 c8669b58087614b28cb4bb4ebb86bd75
BLAKE2b-256 9996bcb40d8dccf81225dffcd4647221517de495de8754674ad75a553d266f1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for url_labeler-1.3.0.tar.gz:

Publisher: publish.yml on minhdo01011990-glitch/URL-chia-nhom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file url_labeler-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: url_labeler-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 43.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for url_labeler-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 002147048137b1b23cbc36c62854a8b3399aa7be43c41a5b657b245b6083b2cf
MD5 eacc5dec8542a142c3414b55621f9198
BLAKE2b-256 ffb87b748de34216111daa413c3fbca72a7ed9e1b752faec2436e993a95568d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for url_labeler-1.3.0-py3-none-any.whl:

Publisher: publish.yml on minhdo01011990-glitch/URL-chia-nhom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page