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

--search feature #6837

Open
aurium opened this issue Sep 12, 2015 · 4 comments
Open

--search feature #6837

aurium opened this issue Sep 12, 2015 · 4 comments

Comments

@aurium
Copy link
Contributor

@aurium aurium commented Sep 12, 2015

Allows the user to search for videos by the command line.

Basic usage example (proposal)

$ youtube-dl --search "Larry David"
youtu.be/G-3fCCL0ASE
Larry David Explains His Parking Lot Meltdown - CONAN on TBS
by Team Coco - 2013-10-11 - Tags: Larry, TBS
Larry David recently had a meltdown in parking garage, as it turns out he's not a good swiper.

youtu.be/DbvbnzQFjzw
Larry David Reacts to Jennifer Lawrence’s Crush on Him – The New Yorker Festival
by The New Yorker - 2015-01-02 - Tags: Larry David, Jennifer Lawrence, Love
In a recent interview, Jennifer Lawrence proudly stated that she has a crush on Larry David. David Remnick asks him for his ...

youtu.be/d3ji7BekPUw
Larry David Pissed Off - Curb Your Enthusiasm Season 7
by duanew86 - 2013-11-12 - Tags: (none)
Best moments of Larry David getting pissed off of season 7 of Curb Your Enthusiasm.

Entry structure:

line 1: smart minimal url to use with youtube-dl
line 2: video title
line 3: meta-data
line 4: description
  • Good for humans and for scripts;
  • May use terminal colors. Example: blue (as default web links) to the line 1; gray to line 3.

Related Parameters

--sources=<comma separated list> — where to search by videos. Youtube is default, "all" is valid and means "all".
--felling-lucky — print the search result and downloads the first found.
--felling-lucky=<number> — print the search result and downloads the first found.
--felling-lucky=all — print the search result and downloads all the found list.

Example with --sources

$ youtube-dl --search "Larry David" --sources=youtube,vimeo
youtu.be/G-3fCCL0ASE
Larry David Explains His Parking Lot Meltdown - CONAN on TBS
by Team Coco - 2013-10-11 - Tags: Larry, TBS
Larry David recently had a meltdown in parking garage, as it turns out he's not a good swiper.

youtu.be/DbvbnzQFjzw
Larry David Reacts to Jennifer Lawrence’s Crush on Him – The New Yorker Festival
by The New Yorker - 2015-01-02 - Tags: Larry David, Jennifer Lawrence, Love
In a recent interview, Jennifer Lawrence proudly stated that she has a crush on Larry David. David Remnick asks him for his ...

vimeo.com/9430708
A Special Welcome Message from Larry David
by GigglechickInteractive - 2010-08-09 - Tags: (none)
Larry David welcomes you to Jeff Garlin's website

vimeo.com/15817243
Jews for Jesus Larry King Live
by Jews for Jesus - 2011-08-09 - Tags: Jesus
in 2000 David Brickner was invited to represent Jews for Jesus on the Larry King Live show. This debate has been ongoing for 2000 years.
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Sep 12, 2015

Searching on YouTube can be achieved via:

youtube-dl "ytsearch:Keyword"

Vimeo search is not implemented, though. Searching is a site-specific feature, and currently only Google Search, YouTube and Yahoo are supported.

@aurium
Copy link
Contributor Author

@aurium aurium commented Sep 12, 2015

@yan12125 i know this. :-)
I'm proposing something very different here.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 12, 2015

That's out of scope of youtube-dl from my pov. youtube-dl is a downloader in the first place and not a search engine.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 12, 2015

I'm with @dstftw, this can be implemented in an external tool that simply calls youtube-dl as needed.

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
4 participants
You can’t perform that action at this time.