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:
- Tắt hoàn toàn (Cmd+Q trên Mac, không chỉ đóng cửa sổ)
- 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:URL): mở terminal mới, hoặc chạysource ~/.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ý:
- Tên thương hiệu
- Domain
- Mục đích phân tích
- Nhãn mẫu bạn muốn dùng
Slash commands (Claude Code)
/url-labeler:URL # 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
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.3.1.tar.gz.
File metadata
- Download URL: url_labeler-1.3.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
105b39810d0fd94205736dbccc22abdf377fa7123040a4990b726bd27bde37b5
|
|
| MD5 |
f4db8af1835c14f44fa501c17d93dbe1
|
|
| BLAKE2b-256 |
3af1e5518f771f253c3aa48499e8ff0e855843e40db297c1e02b572b917db38f
|
Provenance
The following attestation bundles were made for url_labeler-1.3.1.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.3.1.tar.gz -
Subject digest:
105b39810d0fd94205736dbccc22abdf377fa7123040a4990b726bd27bde37b5 - Sigstore transparency entry: 1637767096
- Sigstore integration time:
-
Permalink:
minhdo01011990-glitch/URL-chia-nhom@2cbca86f3dcff409a89f9512768b0cd8fb787183 -
Branch / Tag:
refs/tags/v1.3.1 - Owner: https://github.com/minhdo01011990-glitch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2cbca86f3dcff409a89f9512768b0cd8fb787183 -
Trigger Event:
push
-
Statement type:
File details
Details for the file url_labeler-1.3.1-py3-none-any.whl.
File metadata
- Download URL: url_labeler-1.3.1-py3-none-any.whl
- Upload date:
- Size: 43.5 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 |
63e028dd4f03bfacdedb0fc5b42366274eb260cfdc34b4d792546b0a3b77f212
|
|
| MD5 |
e6c84f5f8ffac3fe7766dd0e72fc145f
|
|
| BLAKE2b-256 |
369bb9deae46c063e33a1038278fe11e19149561b3976403d84ff8f8f1ce9312
|
Provenance
The following attestation bundles were made for url_labeler-1.3.1-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.3.1-py3-none-any.whl -
Subject digest:
63e028dd4f03bfacdedb0fc5b42366274eb260cfdc34b4d792546b0a3b77f212 - Sigstore transparency entry: 1637767163
- Sigstore integration time:
-
Permalink:
minhdo01011990-glitch/URL-chia-nhom@2cbca86f3dcff409a89f9512768b0cd8fb787183 -
Branch / Tag:
refs/tags/v1.3.1 - Owner: https://github.com/minhdo01011990-glitch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2cbca86f3dcff409a89f9512768b0cd8fb787183 -
Trigger Event:
push
-
Statement type: