Youtube Live Streams
Good day everyone!
To address the buffering issues especially local channels. I have added youtube live channels at the bottom of the playlist or in the group "Youtube Live". By default, this is already enabled in your account.
If you wish to disable this feature, you may put
&yt=false after the user=<YOUR_PHCUSERNAME> and before "|User-":
HTTP:
........pythonanywhere.com/?user=<YOUR_PHCUSERNAME>&yt=false|User-................
Frequently Asked Questions:
1. Do I need to install an add-on to play youtube streams?
Answer: Yes, you must install the youtube add-on. Based on my experience, if you click the youtube live stream channel, it will automatically notify you to install the add-on. Just click OK.
2. Are the youtube live streams updated?
Answer: Yes and No. Yes, because I have a script that automatically scrapes youtube channels for live streams. No, because the script will be automatically executed only once a day at around 8:00 AM.
3. Why not run the script hourly?
Answer: Two reasons:
- I am using the Youtube API V3, if I will use the API frequently I will reach the 10,000 quotas/day of youtube.
- The pythonanywhere.com free account will only allow one scheduled task per day.
4. I want an updated live stream, how can I help?
Answer: If you have a Youtube API you may execute the script manually by accessing the link You do not have permission to view the full content of this post.
Log in or register now.<YOUR_YOUTUBE_API> (Note: < > should be removed).
Updating the youtube live stream links would take a while, around 30 seconds or more.
5. I want to update the youtube live stream, but I don't have a Youtube API?
Answer: Please create one. You may google "How To Get a YouTube API Key".
6. I have now a Youtube API, do I need to access the link (You do not have permission to view the full content of this post.
Log in or register now.<YOUR_YOUTUBE_API> ) frequently?
Answer: Sample scenarios on when to update the youtube live streams.
- If you think, for example, it is already past 11:00 AM, and "Kapamilya Showtime" is not yet on the list.
- It is already evening, and "24-oras" or "TV Patrol" will be live at that time.
- If you have multiple APIS and want to update the live streams hourly or every 30 minute
- Early morning, before 8:00 AM, maybe around 6:00AM
7. I have accessed the link with my Youtube API, but an error occurred?
Answer: if you got this error: "Error: Youtube API Daily Limit Exceeded! or Invalid API", please check your youtube API is correct. Or you might have reached the youtube quota limit. According to the youtube API documentation, searching for a live stream per channel would cost 100 units. For example, 18 channels available for scraping multiply by 100 would cost 1,800 units. This would mean you can only successfully update the youtube live stream approximately 5 times.
8. What youtube channels are available?
Answer:
"
cocomelon":"UCbCmjCuTUZos6Inko4u57UQ",
"
teenz":"UCgJMDt2yFAtWAKOIqwihLlw",
"
kapamilya":"UCstEtN0pgOmCf02EdXsGChw",
"
gma_news": "UCqYw-CTd1dU2yGI71sEyqNw",
"
news5":"UCGEbMwiX774cseKvJqF9R2g",
"
cnn_philippines" : "UCj6spMO3ybZPobE0T5perHA",
"
one_news":"UCzEAC4xGrhpShopTYgBhGJA",
"
abscbn_news":"UCE2606prvXQc_noEqKxVJXA",
"
rmn":"UC0x58b8W1OdhFcr3RJmJbmg",
"
dzrh":"UCcTiBX8js_djhSSlmJRI99A",
"
untv" : "UC3XaG-7UVi2vD8ZZEMNnnpw",
"
ptv":"UCJCUbMaY593_4SN1QPG7NFQ",
"
eatbulaga":"UCi623vUlmMZGgZbVcmzHc7Q",
"
showtime":"UCO4ryA0GLLwwsZ5ZQmkqVNA",
"
nba_score":"UCWJ2lWNubArHWmf3FIHbfcQ",
"
nba_scores":"UCm-WyLJIj2YKF8aIY9ivUgw",
"
mass_manila_cathedral":"UCVn72wymDqu5A3ZCC8GEXLA",
"
mass_cebu_basilica":"UCXbwhNk0vqcggM5uieWpljA",
"
tv_maria":"UCDXPB23ws_T0rVvrXVCYqyA",
"
mytv_cebu":"UC9ghsOyFszmfyUJ-G43Ycow",
"
rjtv":"UC0x58b8W1OdhFcr3RJmJbmg",
"
wish1075":"UC4mNKqTuEvp9tVXWz43ijwQ"
9. I want a youtube channel to be included, can I add it?
Answer: Please comment below the youtube channel id you wish to add.