Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Search by Filter #11457
Search by Filter #11457
Comments
|
youtube-dl's search function is based on YouTube website's. Do you know how to search for specific features on the website? |
|
@yan12125 Absolutely i knew that. In this case, it seems that my question is unclear. What i mean here is : I couldn't find what parameters should be used to search for Youtube videos using youtube-dl based on filtering by FEATURES (4K, HD, creative commons, etc). Then the result of search queries are videos filtered by FEATURES only. For example: i search 10 videos of "christmas song" - filtered by creative commons license, so the result would be 10 videos with CC license only. I assume the parameter is like : ytsearch10:"christmas song: creative commons". As i'm not a native English speaker, so i attached a screenshot. Hope you'll get it. |
|
Got it. Sounds a useful feature |
|
@vordep Great. Works as expected. Just missing a litle feature for determining of videos count result, where ytsearch or gvsearch already did these job perfectly. |
|
@linglung Sadly it was not accepted, anyway i believed you were talking about being able to search for more than one videos right, like this?
|
|
@vordep Yes, right. More than one video but with certain amount of videos, such as 5, 10 or 12 videos. I know this has been done with ytsearch or gvsearch. i.e : ytsearch5, ytsearch10, ytsearch12. It's only missing of filtering for "Features" as i asked before. While your latest class update is almost perfect. It has the ability to filter results based on "Features" - especially creative commons filter - as exactly what i need. Sadly, It couldn't limit in a certain amount of videos, or to determine the number of videos that will be downloaded . It just downloaded all the videos on page one. No problem if it's not possible or not accepted at this moment, the last update was satisfied enough for me. |
|
@linglung It should work without a hitch since ytsearch works, and my classes are extensions of that, try this
this is the output i got, it downloaded the 10 videos i requested.
|
|
@vordep I tried it and not yet working properly. My details are:
was it due to Python version? Here is the log :
|
|
A normal log without cc command.
|
|
i believe the problem relies on the fact that my pull request was not merged with youtube-dl master. |
|
@vordep Awesome, finally it works. After reading your latest comment, i just realized my mistake. I figure it out of your fork. Totally it works great. checked the result, and it's correctly result as CC videos.
|
|
Sir when I use features option like creative commons the download speed limit decrease in kb. Any suggestion because when i clone from https://github.com/rg3/youtube-dl.git and try it will download the video in per MB but with your clone it will decrease in KB. But the features option is not available in original repo. |

How to search any videos based on FEATURES filter such as 4K, Creative commons or 3D? i can see youtube-dl has ability to sort by upload date, min view etc but i can't find for features. e.g : ytsearch:Chritsmas videos :creative commons