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.
Feature request: Redesigned search #19650
Comments
|
|
|
@dstftw: Ah! So You don't know how many hits are returned by the site each time, so if you do a blind guess and do Also, available search engines should be documented in the manual pages. Also, let me know if you welcome more search engines or if this is not really a priority. I was surprised there only seems to be three (yt, gv and yb). Is there a particular reason there's so few? |
|
Pagination is not technically possible in all cases cause not all services have such notion as a page.
They are treated as regular extractors no more no less. There are more search extractors, search for |
|
OK. I understand why you've chosen such a generic solution. Seems there is a SoundCloud search too, but that's all I could find. Four sites in total. PS! I noticed there's an error in the JSON data:
The
|
|
No error here, |
Referring to #19311, if an interactive mode, no matter how useful, is considered out of scope, it's fully possible to write a wrapper around
youtube-dlthat does the suggested functionality (which is more or less what I've already done). Maybe I'll turn this is into an open source project.Now, it would be nice to rely on youtube-dl for searching (multiple) sites. However, the current search functionality is slow to the point of being useless, because it visits the video page for every search hit, eg. 30 search hits = 30 page loads = 30 seconds = time that no-one is willing to spend waiting.
I'd like to propose that searches in youtube-dl returns immediate hits from the search page with the information that is immediately available there and return a JSON object (faux example below). Syntax:
youtube-dl search-engine:search-phrase[:page-number]I also noticed that which search engines are supported don't seem to be documented in the manual pages, and they seem to be very few in general (maybe only three?) There should be more, and it's very easy to write this code. I'd be happy to contribute with a couple of sites.