Spaces:
Sleeping
Sleeping
File size: 467 Bytes
4dc7a21 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | from youtube_analytics import get_retention_curve
video_ids = [
"USVNGTw2pKM", # Dijkstra is Dead
"okPBQ0Ekafw",
"FU78qBHeQf0",
"4Rq-LY16WxM", # FlashGuard
"LpihkA9KWqo",
]
for vid in video_ids:
print(f"\nTrying: {vid}")
df = get_retention_curve(vid)
if df is not None:
print(f" ✅ Has retention data! ({len(df)} points)")
print(df.head(5).to_string(index=False))
else:
print(f" ⚠️ No data yet") |