YouTube Description Updaterer | How to use Python + API
#YouTube #API #Python #Upload
An update on the updater Python code for the Google/YouTube API to get data from YouTube, such as video description, and then add to it, and then I attempt to upload it back up to YouTube.
This shows me wrestling with OAuth, and experimenting with the code from GitHub : https://github.com/youtube/api-samples/blob/master/python/upload_video.py
I also look at how to get the secret json file and get the authentication code - sorry for blocking out some of the screen, but I had to for obvious reasons....
If anyone has done similar please contact me or comment below.
Progress summary =
1. Download thumbnails of all videos in a channel
2. Download video id, title, description
3. Save id, title and description to a json file.
All working
4. Next : Upload amended description - Use code from YouTube/GitHub :
https://github.com/youtube/api-samples/blob/master/python/upload_video.py
#------------------------------ After some testing it appears that :
"id", video['id']
Saved with my ytapithumbget has been creating a video id which looks something like :
"id", "VVV0dkdDYUV6UVpYN0d3VUppLUUzQUxRLnRmbC1VWHE4SV9B"
But the id that *actually works* with the updater code is the id from the URL :
eg:
tfl-UXq8I_A
At least this has now verified that OAuth is correctly configured with the secret_json file.
Todo : Add search for video_id rather than current playlist_id
#search_result.id.videoId
#search_result.id.channelId
#search_result.id.playlistId
Also get the tags, they weren't saved into the JSON..but they soon will be!
KBO
reference =
https://developers.google.com/youtube/v3/docs/search/list?apix_params=%7B%22part%22%3A%22list%22%2C%22channelId%22%3A%22update_video%22%7 #usage
Check out the Minimalist online python IDE :
https://epyco.herokuapp.com/
https://epico.herokuapp.com/
Buy Dr Pi a Coffee...or Tea! : https://www.buymeacoffee.com/DrPi
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «YouTube Description Updaterer | How to use Python + API», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.