Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Is it possible? Automatic youtube search filtering

Featured Replies

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.

  • 2 weeks later...

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.

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.

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.