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

Plugin Claude Code để đánh nhãn URL theo chủ đề nội dung cho phân tích organic traffic SEO.
Xử lý đến 75,000 hàng — kết hợp rule-based (miễn phí) + Claude Batch API (~$0.02–0.10).


Cài đặt nhanh

# 1. Clone plugin về máy
git clone https://github.com/maytinh/url-labeler ~/url-labeler

# 2. Cài đặt MCP server
pip install ~/url-labeler

# 3. Trong thư mục project SEO của bạn, copy file cấu hình
cp ~/url-labeler/.mcp.json .

# 4. Mở Claude Code với plugin
claude --plugin-dir ~/url-labeler

Lần đầu chạy, plugin sẽ hỏi Anthropic API key và tự động lưu vào ~/url-labeler/.anthropic_key.
Lấy API key tại: console.anthropic.com → API Keys


Sử dụng

/url-labeler:start https://docs.google.com/spreadsheets/d/ID/edit
/url-labeler:start /đường/dẫn/data.csv
/url-labeler:start /đường/dẫn/data.xlsx

Plugin hỏi 3 câu ngắn rồi tự động xử lý:

  1. Tên thương hiệu — ví dụ: Hacom, Thế Giới Di Động
  2. Domain — ví dụ: hacom.vn, thegioididong.com
  3. Nhãn mẫu — 3–10 nhãn theo cấu trúc bạn muốn (ví dụ: Trang chủ, Danh mục - Máy giặt, Blog - Hướng dẫn)

Kết quả xuất ra ./labeled_output.xlsx.


Đị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 cần được chia sẻ ở chế độ "Anyone with the link can view".


Hiệu suất & Chi phí

Số URL Rule-based Claude Batch API Chi phí
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 được xử lý bằng rule-based (miễn phí). Chỉ phần còn lại gọi Claude API.


Lệnh độc lập

Lệnh Mục đích
/url-labeler:start [source] Toàn bộ pipeline (khuyến nghị)
/url-labeler:build-labels Chỉ Bước 1: xây danh sách nhãn
/url-labeler:label-data Chỉ Bước 2: đánh nhãn
/url-labeler:review-labels Chỉ Bước 3: review và chỉnh sửa

Yêu cầu

  • Python 3.9+
  • Claude Code CLI (npm install -g @anthropic-ai/claude-code hoặc download tại claude.ai/code)
  • Anthropic API key (lấy tại console.anthropic.com)

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.0.0.tar.gz (27.9 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.0.0-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: url_labeler-1.0.0.tar.gz
  • Upload date:
  • Size: 27.9 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.0.0.tar.gz
Algorithm Hash digest
SHA256 bbae13cdfb6b3bb94dcb5834828bd9198172675c6e29934f7e4645bf8360c415
MD5 1d3ffaa8f57fe644054e7e4ceee15ce9
BLAKE2b-256 3a17d6ab72a973e7129618267ad79c3e0e4238ebf806b26c8e7a5a1371a89674

See more details on using hashes here.

Provenance

The following attestation bundles were made for url_labeler-1.0.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.0.0-py3-none-any.whl.

File metadata

  • Download URL: url_labeler-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 32.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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b626dc07f40b0153d9a3fd13025cec9a6d7d7f33ce69d631a05bb2c2620f4ca
MD5 6dccc99050e3e2691057743d19368d59
BLAKE2b-256 064119db8f8f6edd54d87cab2da9e6fd8b67bfcaaedeb883e5828f9d1108bd17

See more details on using hashes here.

Provenance

The following attestation bundles were made for url_labeler-1.0.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