December 11, 201510 yr Hi there, I wish to create a piece of code that allows you to set up youtube video preferences then returns a video that most closely matches. For example user selects the following: Views: 10k+ Like/Dislike ratio: 2:1 Tag: Football And the script searches for all the relevant youtube videos and displays them in rank of relevance. Does youtube allow you to do this and if so what programming language is best suited as I'm looking to learn from scratch would python have the capability? Thanks.
December 23, 201510 yr Here's their API and the search filters it supports https://developers.google.com/youtube/v3/docs/search/list I'm not seeing any fllters related to what you want to do though The API is available in multiple languages, including Python but the most exhaustive one I've seen is PHP. Since their API won't let you, try and look if you can find any Youtube aggregators with bigger filtering options in their API. Though, usually their content is have a big delay in adding new videos.
December 24, 201510 yr It should be broadly possible as I've seen CMS addons do similar things, eg the Craft plugin at https://dukt.net/craft/videos and the EE addon at http://www.devdemon.com/expressionengine-addons/channel-videos both allow you to search and add video data into entries. It looks like you may need to connect to Google API using Oauth first.
December 24, 201510 yr It should be broadly possible as I've seen CMS addons do similar things, eg the Craft plugin at https://dukt.net/craft/videos and the EE addon at http://www.devdemon.com/expressionengine-addons/channel-videos both allow you to search and add video data into entries. It looks like you may need to connect to Google API using Oauth first. That's if he wants to search through his own videos where the API gives you more search options but I think he wants to search through all public videos.
Create an account or sign in to comment