Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Searching Youtube #2518

Closed
HalosGhost opened this issue Mar 5, 2014 · 5 comments
Closed

[Feature Request] Searching Youtube #2518

HalosGhost opened this issue Mar 5, 2014 · 5 comments

Comments

@HalosGhost
Copy link

@HalosGhost HalosGhost commented Mar 5, 2014

I'm not sure how difficult this would be to implement, but the only thing I really feel like is missing in my experience with youtube-dl is to be able to search on the command-line.

So, for example, if I could run youtube-dl --query="people are awesome", I would be able to see (say, for instance) the top ten results from youtube (or another one of the supported sites from the extractors). It seems like it might not be terribly hard given that youtube-dl is able to "guess" particular videos with the --default-search option.

Is this {feasible,desirable}?

@HalosGhost
Copy link
Author

@HalosGhost HalosGhost commented Mar 5, 2014

I am aware of youtube-viewer, but I'd like to avoid having a whole extra application. Also, it would feel very redundant since I already use youtube-dl and mpv for video-playing; I don't need another tool to add to that list.

@phihag
Copy link
Contributor

@phihag phihag commented Mar 5, 2014

This is already implemented, for quite a while now:

$ youtube-dl 'people are awesome' --get-title
PEOPLE ARE AWESOME 2014! 1080p HD (41 MINS!)
$ youtube-dl 'gvsearch10:people are awesome' --get-title
PEOPLE ARE AWESOME (Hadouken! - Mecha Love)
PEOPLE ARE AWESOME 2013 (Hadouken! - Levitate)
PEOPLE ARE AWESOME 2013
PEOPLE ARE AWESOME 2013 FULL HD
PEOPLE ARE AWESOME 2012 - 2013
People Are Awesome
PEOPLE ARE AWESOME 2014! 1080p HD (41 MINS!)
PEOPLE ARE AWESOME 2014
PEOPLE ARE AWESOME • AMAZINGTAGES
PEOPLE ARE AWESOME 2013

Have a look at the output of youtube-dl --extractor-descs (look for search) to see all supported search extractors.

By default, youtube-dl downloads the first video. Pass in a number or all to download the specified number of videos.

@phihag phihag closed this Mar 5, 2014
@HalosGhost
Copy link
Author

@HalosGhost HalosGhost commented Mar 5, 2014

Oh my, this is awesome. Thanks for the heads up, and sorry for the unnecessary issue (github seems to have removed the ability to search through issues).

@phihag
Copy link
Contributor

@phihag phihag commented Mar 5, 2014

No problem, I don't think there is a single issue.

By the way, issue search works fine for me. Just type in the input field at the top:

github-search

@HalosGhost
Copy link
Author

@HalosGhost HalosGhost commented Mar 6, 2014

Oh, they just unified the search bar. That's even better! Thank you again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.