🐍 Generated Python Output (bulk_schedule.py)
import google_auth_oauthlib.flow
import googleapiclient.discovery
import googleapiclient.http
# =========================
# LOGIN GOOGLE API
# =========================
scopes = ["https://www.googleapis.com/auth/youtube.upload"]
flow = google_auth_oauthlib.flow.InstalledAppFlow.from_client_secrets_file(
"client_secret.json", scopes)
credentials = flow.run_local_server(port=0)
youtube = googleapiclient.discovery.build(
"youtube", "v3", credentials=credentials)
# =========================
# DATA VIDEO
# Format:
# (file, title, description, tags, publish_time)
# =========================
videos = [
(
"Video_satu.mp4",
"Si Pitung",
"Film Kolosal",
["betawi", "kolosal"],
"2026-07-09T17:28:34+07:00"
),
(
"Video_dua.mp4",
"Si Jampang Pendekar Betawi",
"Film Pendekar Betawi",
["betawi", "kolosal", "pendekar"],
"2026-07-09T17:29:45+07:00"
),
]
for file_name, title, description, tags, publish_time in videos:
request = youtube.videos().insert(
part="snippet,status",
body={
"snippet": {
"title": title,
"description": description,
"tags": tags,
"categoryId": "10"
},
"status": {
"privacyStatus": "private",
"publishAt": publish_time
}
},
media_body=file_name
);
response = request.execute()
print("Scheduled:", file_name, "->", publish_time)