Pretty fun and original game. I notice some videos repeat a lot though, which means I already know the ballpark of their view counts. I starred the repo to take a look at earlier, but I assume you're selecting from a predefined pool of videos. It would be interesting to see different methods to automate categorization of videos, perhaps using machine learning, maybe even an LLM that reads through the title, description and closed captions.
It's actually not a predefined pool of videos but rather specific search queries depending on the topic.
To be more precise, when you click on a topic I randomly select a search query containing some keywords among a list for that given topic. I then make an API call using the search endpoint and provide that query. The resulting videos are then used to make the game. So depending on when you play the game the videos selected can be different.
5 comments
[ 5.0 ms ] story [ 18.0 ms ] threadIt's actually not a predefined pool of videos but rather specific search queries depending on the topic.
To be more precise, when you click on a topic I randomly select a search query containing some keywords among a list for that given topic. I then make an API call using the search endpoint and provide that query. The resulting videos are then used to make the game. So depending on when you play the game the videos selected can be different.
I also made a tutorial video for this project. I go over how to build this exact game step by step here : https://www.youtube.com/watch?v=5UHM-4Ub7F4