table_scrap: HTML table scraping

View source: R/table_scrap.R

table_scrapR Documentation

HTML table scraping

Description

This function is used to scrape an html table from a website.

Usage

table_scrap(link, choose = 1, header = TRUE, askRobot = FALSE)

Arguments

link

the link of the web page containing the table to scrape

choose

an integer indicating which table to scrape

header

do you want the first line to be the leader (default to TRUE)

askRobot

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

Value

a data frame object.

Examples


# Extracting premier ligue 2019/2020 top scorers

link     <- "https://www.topscorersfootball.com/premier-league"
table_scrap(link)


feddelegrand7/ralger documentation built on March 14, 2023, 12:44 a.m.