Learn R Programming

ralger (version 2.2.4)

images_scrap: Scrape Images from a Web Page

Description

Scrape Images from a Web Page

Usage

images_scrap(link, imgpath = getwd(), extn, askRobot = FALSE)

Arguments

link

the link of the web page

imgpath

the path of the images. Defaults to the current directory

extn

the extension of the image: png, jpeg ...

askRobot

logical. Should the function ask the robots.txt if we're allowed or not to scrape the web page ? Default is FALSE.

Value

Images

Examples

Run this code
# NOT RUN {
images_scrap(link = "https://rstudio.com/", extn = "png")

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab