The interesting idea with yn
is searching YouTube in the background and getting the result URLs only in-line, abstracting away everything except search engine and content.
With yn
you can use the full power of the YouTube search engine in-line and in scripts.