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ý:
- Tên thương hiệu — ví dụ:
Hacom,Thế Giới Di Động - Domain — ví dụ:
hacom.vn,thegioididong.com - 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-codehoặ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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbae13cdfb6b3bb94dcb5834828bd9198172675c6e29934f7e4645bf8360c415
|
|
| MD5 |
1d3ffaa8f57fe644054e7e4ceee15ce9
|
|
| BLAKE2b-256 |
3a17d6ab72a973e7129618267ad79c3e0e4238ebf806b26c8e7a5a1371a89674
|
Provenance
The following attestation bundles were made for url_labeler-1.0.0.tar.gz:
Publisher:
publish.yml on minhdo01011990-glitch/URL-chia-nhom
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
url_labeler-1.0.0.tar.gz -
Subject digest:
bbae13cdfb6b3bb94dcb5834828bd9198172675c6e29934f7e4645bf8360c415 - Sigstore transparency entry: 1566624696
- Sigstore integration time:
-
Permalink:
minhdo01011990-glitch/URL-chia-nhom@38d6d7b951c7ac825d1bbaa77b766f4d22c1f4c5 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/minhdo01011990-glitch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@38d6d7b951c7ac825d1bbaa77b766f4d22c1f4c5 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b626dc07f40b0153d9a3fd13025cec9a6d7d7f33ce69d631a05bb2c2620f4ca
|
|
| MD5 |
6dccc99050e3e2691057743d19368d59
|
|
| BLAKE2b-256 |
064119db8f8f6edd54d87cab2da9e6fd8b67bfcaaedeb883e5828f9d1108bd17
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
url_labeler-1.0.0-py3-none-any.whl -
Subject digest:
6b626dc07f40b0153d9a3fd13025cec9a6d7d7f33ce69d631a05bb2c2620f4ca - Sigstore transparency entry: 1566624711
- Sigstore integration time:
-
Permalink:
minhdo01011990-glitch/URL-chia-nhom@38d6d7b951c7ac825d1bbaa77b766f4d22c1f4c5 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/minhdo01011990-glitch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@38d6d7b951c7ac825d1bbaa77b766f4d22c1f4c5 -
Trigger Event:
push
-
Statement type: