From 6221755bc3d4b6a72d12de7413a3e83756fca1ef Mon Sep 17 00:00:00 2001 From: gbganalyst Date: Tue, 14 Jun 2022 16:25:03 +0100 Subject: [PATCH] incorect link in README #12 is now solved --- README.Rmd | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.Rmd b/README.Rmd index aaf1c18..2509fbf 100644 --- a/README.Rmd +++ b/README.Rmd @@ -51,20 +51,21 @@ devtools::install_github("feddelegrand7/ralger") ``` ## `scrap()` -This is an example which shows how to extract [top ranked universities' names](http://www.shanghairanking.com/ARWU2020.html) according to the ShanghaiRanking Consultancy: +This is an example which shows how to extract [top ranked universities' names](http://www.shanghairanking.com/rankings/arwu/2021) according to the ShanghaiRanking Consultancy: ```{r example} library(ralger) -my_link <- "http://www.shanghairanking.com/ARWU2020.html" +my_link <- "http://www.shanghairanking.com/rankings/arwu/2021" -my_node <- "#UniversityRanking a" # The element ID , I recommend SelectorGadget if you're not familiar with CSS selectors +my_node <- "a span" # The element ID , I recommend SelectorGadget if you're not familiar with CSS selectors -best_uni <- scrap(link = my_link, node = my_node) +clean <- TRUE # Should the function clean the extracted vector or not ? Default is FALSE -head(best_uni, 10) +best_uni <- scrap(link = my_link, node = my_node, clean = clean) +head(best_uni, 10) ```