下面是一个JavaScript文件,它使用其API搜索YouTube视频数据。在底部,您将看到onSearchResponse()函数,它调用showResponse(),然后显示搜索结果。// Your use of the YouTubeAPI must comply with the Terms of Service:
// https://developers.google.com/
为了创建数据集,我无法从YouTube视频页中抓取某些数据。我已经成功地为实践抓取了其他的网页,但似乎无法让它对我的实际用例起作用。具体来说,我试图在YouTube向量中获取每个video_ids通道的用户名。</a>library(rvest)
videos <- c("2kyS6SvSYSE","iIxy3JN3-jc","jr9QtXwC9vc")
for