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
Bước 1 — Cài MCP server (terminal)
bash <(curl -sSL https://raw.githubusercontent.com/minhdo01011990-glitch/URL-chia-nhom/main/install.sh)
Script tự động tìm đúng Python, cài url-labeler từ PyPI và đăng ký MCP server vào:
- Claude Desktop App — ghi vào
claude_desktop_config.json - Claude Code — ghi vào
~/.claude/settings.json
Sau khi chạy:
| Môi trường | Cần làm thêm |
|---|---|
| Claude Desktop App | Tắt hoàn toàn (Cmd+Q) rồi mở lại — biểu tượng 🔧 = thành công |
| Claude Code | Không cần làm gì, hoạt động ngay |
Bước 2 — Cài plugin (thủ công)
- Tải file
url-labeler.plugintừ trang Releases - Mở Claude → Settings → Plugins → Upload file
- Chọn file vừa tải → xác nhận
Cài đặt MCP thủ công (nếu script không chạy được)
Claude Desktop App
| Hệ điều hành | Đường dẫn file cấu hình |
|---|---|
| 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"
}
}
}
Cập nhật
Khi có phiên bản mới:
bash <(curl -sSL https://raw.githubusercontent.com/minhdo01011990-glitch/URL-chia-nhom/main/install.sh)
Sau đó tải lại file url-labeler.plugin từ Releases → Claude → Settings → Plugins → xóa plugin cũ → Upload file mới.
v1.3.1: Lệnh khởi động đổi từ
/url-labeler:start→/url-labeler:URL
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 (sau khi cài plugin)
/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
Metadata
Release files for url-labeler 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| url_labeler-1.3.2.tar.gz | 62.2 kB | With provenance | Details for url_labeler-1.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| url_labeler-1.3.2-py3-none-any.whl | Python 3 | none | any | Details for url_labeler-1.3.2-py3-none-any.whl |
Total release size: 108.2 kB
Release files / url_labeler-1.3.2.tar.gz
| Download URL | url_labeler-1.3.2.tar.gz |
|---|---|
| Size | 62.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82cac5ab4d3512ddfa59a4fb71a7865fddeda8e3ed57e257ae345427801b65a3
|
|
BLAKE2b-256 checksum How to use checksums |
cc64b13147bc254ee6604e97afef571454f7361ec6c4ed466d43fe9674e0beb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 12, 2026.
Transparency logRelease files / url_labeler-1.3.2-py3-none-any.whl
| Download URL | url_labeler-1.3.2-py3-none-any.whl |
|---|---|
| Size | 46.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da11568121ea379f5baf260d46fd5397599348eb6f43b23ba9af4d4aa1c5b567
|
|
BLAKE2b-256 checksum How to use checksums |
68f024da0396362962892794d42450649495a566d8d4fdc36ec023e89eb0c5c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 12, 2026.
Transparency logSecurity for url-labeler 1.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for url_labeler-1.3.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.