tuber

:sweet_potato: Access YouTube from R

https://github.com/gojiplus/tuber

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    3 of 20 committers (15.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.0%) to scientific vocabulary

Keywords

access-youtube caption video youtube youtube-api youtube-oauth

Keywords from Contributors

geo
Last synced: 6 months ago · JSON representation

Repository

:sweet_potato: Access YouTube from R

Basic Info
Statistics
  • Stars: 185
  • Watchers: 14
  • Forks: 54
  • Open Issues: 28
  • Releases: 2
Topics
access-youtube caption video youtube youtube-api youtube-oauth
Created over 10 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog License

README.md

:sweet_potato: tuber: Access YouTube API via R

CRAN\_Status\_Badge

Access YouTube API via R. Get comments posted on YouTube videos, get information on how many times a video has been liked, search for videos with particular content, and much more. You can also get closed captions of videos you own. To learn more about the YouTube API, see https://developers.google.com/youtube/v3/.

Installation

To get the current development version from GitHub:

``` r

install.packages("devtools")

devtools::installgithub("soodoku/tuber", buildvignettes = TRUE) ```

To get a quick overview of some important functions in tuber, check out this article.

Using tuber

To get going, get the application id and password from the Google Developer Console (see https://developers.google.com/youtube/v3/getting-started). Enable all the YouTube APIs. Then set the application id and password via the yt_oauth function. For more information about YouTube OAuth, see YouTube OAuth Guide.

r yt_oauth("app_id", "app_password")

If your session cannot open a browser window for authentication, pass use_oob = TRUE to yt_oauth() so that authentication can be completed via an out-of-band code.

To force re-authentication at any time, delete the .httr-oauth file in your working directory.

Note: If you are on ubuntu, you may have to run the following before doing anything:

httr::set_config(httr::config( ssl_verifypeer = 0L ) )

Get Statistics of a Video

r get_stats(video_id = "N708P-A45D0")

Get Information About a Video

r get_video_details(video_id = "N708P-A45D0")

Get Captions of a Video

r get_captions(video_id = "yJXTXN4xrI8")

Note: It was previously possible to get captions for all videos that had “Community contributions” enabled. However, since YouTube removed that option in September 2020, the get_captions function now only works for videos created with the same account as the API credentials you use. An alternative for collecting YouTube video captions is the youtubecaption package.

Search Videos

r yt_search("Barack Obama")

Get All the Comments Including Replies

r get_all_comments(video_id = "a-UQz7fqR3w")

License

Scripts are released under the MIT License.

Contributor Code of Conduct

The project welcomes contributions from everyone! In fact, it depends on it. To maintain this welcoming atmosphere, and to collaborate in a fun and productive way, we expect contributors to the project to abide by the Contributor Code of Conduct.

Owner

  • Name: goji+
  • Login: gojiplus
  • Kind: organization

Useful tools for everyone

GitHub Events

Total
  • Issues event: 20
  • Watch event: 1
  • Delete event: 6
  • Issue comment event: 20
  • Push event: 39
  • Pull request event: 21
  • Fork event: 1
  • Create event: 8
Last Year
  • Issues event: 20
  • Watch event: 1
  • Delete event: 6
  • Issue comment event: 20
  • Push event: 39
  • Pull request event: 21
  • Fork event: 1
  • Create event: 8

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 406
  • Total Committers: 20
  • Avg Commits per committer: 20.3
  • Development Distribution Score (DDS): 0.17
Past Year
  • Commits: 14
  • Committers: 2
  • Avg Commits per committer: 7.0
  • Development Distribution Score (DDS): 0.071
Top Committers
Name Email Commits
***** g****7@g****m 337
muschellij2 m****2@g****m 36
amrrs a****s@o****m 8
Mikko Rönkkö m****o@j****i 3
Daniel Thiele d****e@f****e 2
Balthasar 3****s 2
Gustavo Velásquez g****b@g****m 2
MaKr S****n 2
Kate Lyons k****3@i****u 2
Michael Chirico m****4@g****m 2
Lisa Hehnke l****e@u****e 1
Johannes Breuer 2****u 1
Layik Hama l****a@g****m 1
Maria Paula Caldas 3****s 1
Michael Toth m****h@g****m 1
Tim König 3****K 1
mbaquer6 m****6@g****m 1
Helena Schmidt k****3@k****e 1
Juan Alvarado j****d@g****m 1
Troy Hernandez t****z@p****e 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 77
  • Total pull requests: 48
  • Average time to close issues: almost 2 years
  • Average time to close pull requests: 4 days
  • Total issue authors: 59
  • Total pull request authors: 16
  • Average comments per issue: 4.26
  • Average comments per pull request: 0.58
  • Merged pull requests: 41
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 14
  • Average time to close issues: 3 months
  • Average time to close pull requests: less than a minute
  • Issue authors: 2
  • Pull request authors: 2
  • Average comments per issue: 0.5
  • Average comments per pull request: 0.0
  • Merged pull requests: 8
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • hariskr (5)
  • MaximilianKrauss (4)
  • balthasars (3)
  • cschwem2er (3)
  • gvelasq (2)
  • hmeleiro (2)
  • lyons7 (2)
  • nasbar79 (2)
  • ctlamb (2)
  • dripti (2)
  • gabrielrvsc (1)
  • Rsull93 (1)
  • rorymclaughlin432 (1)
  • mronkko (1)
  • mauro-cb (1)
Pull Request Authors
  • soodoku (13)
  • muschellij2 (11)
  • thieled (4)
  • mronkko (4)
  • TroyHernandez (3)
  • balthasars (2)
  • MaximilianKrauss (2)
  • MichaelChirico (2)
  • layik (1)
  • mpaulacaldas (1)
  • jalvarado (1)
  • jobreu (1)
  • TimBMK (1)
  • gvelasq (1)
  • lhehnke (1)
Top Labels
Issue Labels
bug (6) help wanted (6) enhancement (3)
Pull Request Labels
codex (13)

Packages

  • Total packages: 2
  • Total downloads:
    • cran 646 last-month
  • Total docker downloads: 21,344
  • Total dependent packages: 1
    (may contain duplicates)
  • Total dependent repositories: 4
    (may contain duplicates)
  • Total versions: 20
  • Total maintainers: 1
proxy.golang.org: github.com/gojiplus/tuber
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.2%
Average: 5.4%
Dependent repos count: 5.6%
Last synced: 6 months ago
cran.r-project.org: tuber

Client for the YouTube API

  • Versions: 19
  • Dependent Packages: 1
  • Dependent Repositories: 4
  • Downloads: 646 Last month
  • Docker Downloads: 21,344
Rankings
Forks count: 1.4%
Stargazers count: 2.3%
Average: 10.3%
Downloads: 12.5%
Docker downloads count: 12.6%
Dependent repos count: 14.6%
Dependent packages count: 18.1%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.4.0 depends
  • dplyr * imports
  • httpuv * imports
  • httr * imports
  • jsonlite * imports
  • magrittr * imports
  • plyr * imports
  • purrr * imports
  • tibble * imports
  • tidyr * imports
  • tidyselect * imports
  • utils * imports
  • hms * suggests
  • knitr >= 1.11 suggests
  • lintr * suggests
  • rmarkdown * suggests
  • testthat * suggests
  • xml2 * suggests
.github/workflows/r.yml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-r f57f1301a053485946083d7a45022b278929a78a composite