gojiplus / tuber

:sweet_potato: Access YouTube from R
http://gojiplus.github.io/tuber
Other
184 stars 55 forks source link

error #7

Closed MrAnderbro closed 8 years ago

MrAnderbro commented 8 years ago

Hi

when i run get_stats(video_id= "PmEGhlO_2h4") or get_channel(channel_id = "UCrpWCVp9FuGA8OnGtA0rgsw")

i get the following error: Error in tuber_GET("channels", querylist, ...) : Forbidden (HTTP 403).

could you check this pls? thanks

soodoku commented 8 years ago

Will do right away. Apologies if it is a bug at my end.

MrAnderbro commented 8 years ago

thank you!

soodoku commented 8 years ago

Dear @MrAnderbro:

Just ran the functions at my end and they worked:

get_stats(video_id= "PmEGhlO_2h4") No. of Views 547784 No. of Likes 11389 No. of Dislikes 910 No. of Favorites 0 No. of Comments 1261

get_channel(channel_id = "UCrpWCVp9FuGA8OnGtA0rgsw") Channel Title TheVR No. of Views 105598646 No. of Subscribers 375673 No. of Videos 684

Few suggestions:

  1. Try downloading the latest copy on GitHUb via: library(devtools) devtools::install_github("soodoku/tuber", build_vignettes = TRUE)
  2. Try nuking the .httr-oauth in your local dir and run yt_oauth() with your credentials again and let me know how it goes. The forbidden error seems like a credential issue to me.

If problem still persists, I will dig deeper. I will focus a bit more to see what is going on.