Skip to content

tpc-pascal/YT_Subscription

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YT_Subscription

Get all of your subscription/playlist so you can choose which one to unsub/delete

Open In Colab Open in Hugging Face

Công cụ lấy danh sách YouTube subscriptions và playlists, phân loại bằng AI (Gemini), hiển thị qua giao diện Gradio.

Lý do ra đời: Bạn có quá nhiều kênh đăng ký trên YouTube và muốn dọn dẹp? Công cụ này giúp bạn xem tất cả subscriptions, playlists và video trong đó, được AI phân loại theo chủ đề, để dễ dàng quyết định unsubscribe hoặc xóa playlist.


Tính năng

  • Xác thực Google OAuth 2.0 (YouTube Data API v3) — an toàn, scope readonly
  • Lấy tất cả subscriptions (tự động phân trang)
  • Phân loại kênh theo chủ đề bằng Google Gemini AI: Code, Entertainment, News, AI/ML, Education, Music, Game, Tech, Other
  • Lấy danh sách playlistsvideo trong từng playlist
  • Giao diện web với Gradio (sort, filter, dark mode, xem thumbnail)
  • Xuất danh sách subscriptions ra file ZIP (CSV)
  • Chạy được trên: local, Hugging Face Spaces, Google Colab

Cấu trúc thư mục

YT_Subscription/
├── hf/                          # Hugging Face Spaces deployment
│   ├── app.py                   # Entry point — Gradio UI
│   ├── requirements.txt         # Python dependencies
│   ├── packages.txt             # System packages (HF)
│   ├── core/
│   │   ├── youtube_api.py       # YouTube API wrapper (auth, fetch)
│   │   └── gemini_classify.py   # Gemini AI classifier
│   ├── utils/
│   │   └── file_manager.py      # Export ZIP/CSV
│   └── README.md                # HF Space metadata
├── colab.ipynb                  # Google Colab notebook
├── GUIDE.md                     # Hướng dẫn setup chi tiết
├── CONTRIBUTING.md              # Hướng dẫn đóng góp
├── CREDITS.md                   # Credits & tham khảo
└── LICENSE                      # MIT

Tech Stack

Layer Công nghệ
Language Python 3.10+
Web UI Gradio 6.13
YouTube API google-api-python-client, google-auth-oauthlib
AI Classification google-genai (Gemini)
Data pandas
CI/CD GitHub Actions → Hugging Face Spaces

Tác giả

tpc-pascalGitHub


License

MIT — xem file LICENSE.

About

Get all of your subscription/playlist so you can choose which one to unsub/delete

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors