Data scraping
Appearance
- APES Atlas Web Scraper
- The following R code extracts data from the standardized APES Atlas tables.
- The functions below need to be loaded into R.
- ---------------------------------------------------------------------------------------------------------------------------------
rm(list=ls())
- ---------------------------------------------------------------------------------------------------------------------------------
- Install & load packages
- ---------------------------------------------------------------------------------------------------------------------------------
- install.packages("plyr")
- install.packages("writexl")
- install.packages("jsonlite")
- install.packages("httr2")
library(httr2) library(jsonlite) library(writexl) library(plyr)
- ---------------------------------------------------------------------------------------------------------------------------------
- Load functions from Github
- ---------------------------------------------------------------------------------------------------------------------------------
source("https://github.com/lakik/apesatlas_scraping/raw/refs/heads/main/script")
- ---------------------------------------------------------------------------------------------------------------------------------
- Define the path to save the results
- ---------------------------------------------------------------------------------------------------------------------------------
path_to_save = "D:/Users/lkulik/Senckenberg Dropbox/Lars Kulik/APES/APES Wiki/Test/"
- ---------------------------------------------------------------------------------------------------------------------------------
- Run scraper function
- ---------------------------------------------------------------------------------------------------------------------------------
scrape_apesatlas(path_to_save,api_url)
- ---------------------------------------------------------------------------------------------------------------------------------