youtube2mp3: youtube2mp3

Description Usage Arguments Value Examples

View source: R/youtube2mp3.R

Description

Converts youtube links to mp3s.

Usage

1
youtube2mp3(video_id, file = NULL)

Arguments

video_id

Youtube's assigned unique identifier; also accepted is a link to a youtube video URL, though if a URL is provided, it must include "youtube.com/watch?v=".

file

Name of output mp3 file. A ".mp3" file extension will be added if not already included. This defaults to the video code (value after v= in the URL) and saved in the current working directory.

Value

Saves output as file name.

Examples

1
2
3
4
5
6
7
8
## Not run: 
## download mp3 of leftovers piano theme by max richter
youtube2mp3(
  "https://www.youtube.com/watch?v=UVvOLhJd44Q",
  file = "leftovers-theme.mp3"
)

## End(Not run)

mkearney/youtube2mp3 documentation built on May 22, 2019, 12:38 p.m.