This function reads youtube video urls from a list and or a text file and converts them to a vector of
video ids. For example, URL https://www.youtube.com/watch?v=73I5dRucCds
returns the id 73I5dRucCds
.
This function can be used to create a vector for the youtube Collect.youtube
functions videoIDs
parameter.
GetYoutubeVideoIDs(urls = NULL, file = NULL)
A vector of youtube video ids as character strings that were extracted from input video urls.
Character vector. List of youtube URLs.
Character string. Text file containing youtube URLs.