by everdrive · 4y ago · 0 comments
At some point Youtube search was neutered. I get 5-10 results for any given query before Youtube gives up and just offers me recommendations rather than search results. Interestingly, if I search google for [search term] site:youtube.com, I actually get pages of results which are never present in the Youtube search. Sadly, it seems that Google has intentionally diminished Youtube's own search function in order to prioritize use of the recommendation system.
It doesn't even have to be that recent in some cases. Searching for "Sandy Hook Elementary" along with just about any other search term is going to give you a page with results about a shooting that took place a decade ago. Searching for a proper noun when they are the top story of the day is pretty much only going to give you that one story.
Then they removed that value point and aligned what they presented with my existing bias - at which point I stopped using it.
As a user of them, I make sure to use multiple engines (preferably with distinct indices and jurisdictions) when I research something essential that affects my long-term future. This is because I distrust how politics is done (industry lobbying).
How management thinks it is a good idea to make their products useless by letting a bunch of self-aggrandizing "analysts" or marketers or whatever attempt to manipulate their customers/viewers is beyond me. The fact that they are all paid to fork it up so badly is just mindboggling.
Maybe I'm out of touch but I don't think this is an unreasonable expectation.
One trick to get rid of them is to select one/any additional search filter (for example select HD only).
It is absolutely ridiculous that you have to do this, but it works for now.
I search from the command line using a short shell script.^1 Perhaps it depends on the query, but I consistently get more than 5-10 results. For example, I might get 26 reults with the initial query. By continuing the query repeatedly I can usually get over 1000 results total. YouTube search results are delivered as JSON so I wrote some simple, quick and dirty utilities in C to reformat the JSON to TSV with only the details I want. The workflow and example script below use those utilities, i.e., yy059, yy062 and yy064.
# YouTube search workflow:
# initial query
1.sh query > results-file
yy064 < results-file|yy062 > results.tsv
# continuation
1.sh < results-file >> results-file
yy064 < results-file|yy062 >> results.tsv
1. Example 14-line script using curl #!/bin/sh
HOST=www.youtube.com;
case $# in :)
;;0)
KEY=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8;
MIN=\{\"context\":{\"client\":{\"hl\":\"en-US\",\"gl\":\"US\",\"clientName\":\"MWEB\",\"clientVersion\":\"2.20210916.06.01\"}},\"continuation\":;
TOKEN=$(yy059|sed -n "s/$/}/;s/\"token\":/$MIN/p"|tail -1);
URL=https://$HOST/youtubei/v1/search?key=$KEY
curl --http1.1 -A "" -H "Content-Type: application/json" -d "$TOKEN" "$URL"
;;*)
S=$(echo "$@"|sed 's/ /+/g');
URL=https://$HOST/results?search_query=$S;
curl --http1.1 -A "" "$URL"
esac;
I also have a short script that retrieves all video details for a given YouTube channel. These results are also delivered as JSON. I use search to discover interesting channels, then retrieve the full lists of videos for those channels.Absolutely agree that YouTube search got neutered.
youtube.com##ytd-search ytd-item-section-renderer>#contents>:not(ytd-video-renderer),ytd-secondary-search-container-renderer
youtube.com##ytd-search ytd-video-renderer:has(.badge:has-text(/new/i))
youtube.com##ytd-watch-next-secondary-results-renderer ytd-compact-video-renderer:has(.badge:has-text(/new/i))I suspect it might be supplying specific filters (e.g., "intitle", mentioned elsewhere in this thread) to YouTube's query engine.
https://github.com/TeamPiped/Piped/blob/860ca92a4d49a85a3781...
That looks strongly like a simple pass-through.
An unqualified search reports (at this writing) just north of 30 million results (30,000,229). It will display only 34 pages' worth of results, I believe 1,000.
See: <https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...> Final page: <https://hn.algolia.com/?dateRange=all&page=33&prefix=false&q...>
As discussed recently on HN, the match count is useful information even where all matching results are not displayed as it indicates whether or not a query is generic.
Contrast search: <https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...> (one result as of this writing).
Edit: Add to that the increase in number of ads per video and their length...ugh
Kinda think there are more than 10 videos about a major food dish on YT.
Starting to think the backend has a concept of “blessed” channels to surface
That's because recommended videos are more popular, and more popular videos earn them more ad revenue.