Extract metadata from YouTube using the YouTube API and a Raspberry Pi Zero ✔

preview_player
Показать описание
Dr Pi extracts metadata from YouTube using a Pi, and the YouTube API!

A Pi Zero can run the Python code to use an API to get the following from YouTube about any given channel, as long as you register for a free API key. Having already used it for Web Scraping with Beautiful Soup to get stock prices I thought I would test it with the YouTube APi to request statistics about a channel.

Install :pip install google-api-python-client and refer to the sample code and there is no reason why a PI Zero can't be used to get the data you want.

eg.
1. Video title
2. Subscribe count
3. Video id
4. Video description
5. Likes count
6. Dislikes count
7. Views count
8. Published date
9. Comment count
10. Comment text
11. Comment likes and dislikes
12. Comment author

Useful reference:

Рекомендации по теме
Комментарии
Автор

Man, this is fantastic! I loved reusing the existing code within tiny computers myself - ones I was playing around with Arduino and micro max chess engine by H.M. Muller to compile it via AVR compiler and run on the micro controller - yeah - there were the times)))

Your "Dr Pi" ASCII art in the console is just awesome - I love it!

You know I just wondered - why don't you use raspberry pi as a freelance? I think it could be a nice addition to R&G site for still raspberry is intended for automation as well IMO - just when you need to automate some routine process that doesn't need huge CPU capacity but can handle some basic network monitoring - scraping and api integration fits raspberry format perfectly well I guess.

monkey_see_monkey_do
welcome to shbcf.ru