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 videos from cli #3082

Closed
blurmonk opened this issue Jun 15, 2014 · 2 comments
Closed

Feature Request: Searching videos from cli #3082

blurmonk opened this issue Jun 15, 2014 · 2 comments

Comments

@blurmonk
Copy link

@blurmonk blurmonk commented Jun 15, 2014

Hi

I like this tool, it works very well. It would be so great if it is possible to also use for searching for videos on the command line (without any browser)

thanks

@phihag
Copy link
Contributor

@phihag phihag commented Jun 15, 2014

That's already possible, try something like

youtube-dl --get-title "yvsearch5:falling cat"

to get the top five videos of falling cats on Yahoo video. You can look at the list of extractors, all search engines should contain search.

You can also just pass in the search term, this will use the youtube search (ytsearch):

$ youtube-dl "Python tutorial"  
WARNING: Falling back to youtube search for  Python tutorial . Set --default-search to "auto" to suppress this warning.
[youtube:search] query "Python tutorial": Downloading page 1
[download] Downloading playlist: Python tutorial
[youtube:search] playlist Python tutorial: Collected 1 video ids (downloading 1 of them)
[download] Downloading video #1 of 1
[youtube] Setting language
[youtube] cpPG0bKHYKc: Downloading webpage
[youtube] cpPG0bKHYKc: Downloading video info webpage
[youtube] cpPG0bKHYKc: Extracting video information
[download] Destination: Python Beginner Tutorial 1 (For Absolute Beginners)-cpPG0bKHYKc.mp4

If you prefer any other search, set --default-search SEARCH_HERE in ~/.config/youtube-dl.conf.

Can you tell us where you looked for this feature? We'll add documentation there.

@phihag phihag closed this Jun 15, 2014
@blurmonk
Copy link
Author

@blurmonk blurmonk commented Jun 19, 2014

Amazing :)

Thanks

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.