tuber: connect R with Youtube API

a 夏天 提交于 2020-01-05 05:30:07

问题


I'm following the steps from this documentation to access Youtube API from R: Google Developers API and Github.

I want to create a shiny app with R to analyse Youtube data: channel subscribers, views, comments ....

The steps I follow:

  1. I create the project on Google Cloud (Web application) with my Google account.
  2. I enable Youtube API data.
  3. Installing and loading tuber package in R.
  4. I write this code: > yt_oauth("app_id", "app_password"). I show below where I take these two fields.
  5. For getting video stats in R: > get_stats(video_id="Im69kzhpR3I")

So I get the following error:

Error: HTTP failure: 403

来源:https://stackoverflow.com/questions/42437412/tuber-connect-r-with-youtube-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!