Spaces:
Sleeping
Sleeping
Download test_retention.py from kosala2002/Addplace: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/spaces/kosala2002/Addplace/resolve/main/test_retention.py
- Command line
-
hf download hf://spaces/kosala2002/Addplace/test_retention.py
-
curl -L -o test_retention.py https://huggingface.co/spaces/kosala2002/Addplace/resolve/main/test_retention.py
467 Bytes
| 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") |