how can I use youtube-dl to only download the urls after a search for keywords. e.g. youtube-dl "gvsearch1:how to create android app in app studio" downloads the entire video , I only need the urls for a keyword(s) search.


I figured it out

youtube-dl gvsearch5:how to develop for android --no-playlist --write-info-json --write-annotation --write-thumbnail --write-sub --skip-download"

The 5 in gvsearch5 is the n, for 10 results make it gvsearch10. The output files are json and xml files for each result and those contain the youtube url.

Hope this is of help to someone.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.