I want to get the YouTube video IDs for this search pattern "joseph prince" from curl
:
curl "https://www.youtube.com/results?sp=CAISAhgC&search_query=joseph+prince&max_results=50" 2>&1 | grep -oP "watch\?v=[\w-]{10,}" | sort | uniq | wc -l
20
My problem is that I get only 20 results.
If I use the webbrowser to go downto the end of the list of the results, the browser automatically queries for more results and displays them.
How can I get more from the command line?