1 Commits

Author SHA1 Message Date
eric
1844155230 '美食频道token' 2026-03-01 01:29:45 -06:00
3 changed files with 14 additions and 12 deletions

View File

@@ -1,11 +1 @@
{
"installed": {
"client_id": "305371487651-iuqafultpqp0rvitojr70560k1foet0n.apps.googleusercontent.com",
"project_id": "live-473104",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_secret": "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",
"redirect_uris": ["http://localhost"]
}
}
{"installed":{"client_id":"449600885586-ln1dn2dhic35up4ojg2449ba8pvks30j.apps.googleusercontent.com","project_id":"regal-groove-488907-n4","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"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","redirect_uris":["http://localhost"]}}

14
main.py
View File

@@ -9,6 +9,15 @@
- 支持 uploads playlist + search fallback
"""
# 网址 获取频道ID
# https://www.tunepocket.com/youtube-channel-id-finder
# 申请OATH2
# https://console.cloud.google.com/apis/library/youtube.googleapis.com
# 启用
# YouTube Data API v3
import os
import pickle
import time
@@ -33,7 +42,10 @@ API_SERVICE_NAME = "youtube"
API_VERSION = "v3"
CHECK_INTERVAL_SECONDS = 1800 # 检查间隔30 分钟
CHANNEL_ID = "UC-8V3pDMlM2B75fvbYRBsNg"
# CHANNEL_ID = "UC-8V3pDMlM2B75fvbYRBsNg" #vlog
CHANNEL_ID = "UCXFErW9DeE8EXrInlnyCnVw" #food
# 安全删除参数
MAX_DAILY_DELETES = 30 # 每天最多删 30 个(可调 10~50

Binary file not shown.