gaalcaras / socscrap

R package to teach webscraping to social scientists

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Soscrap

Teaching webscraping to social scientists!

The package provides:

  • A fully working AllocinĂ© webscraper (try get_ratings!), with a range of high-level functions (extracting a year of data) to lower-level functions (extracting text with XPath query or CSS selector)
  • Extensive documentation (vignettes in French, ?get_ratings)
  • Data generated by the scraper (try data(ratings))
  • Slides presenting the basics of webscraping (go to inst/slides) to learn more

Installing socscrap

socscrap is not available on CRAN at the moment, and must be installed directly from Github using the devtools package.

Some Windows users might need to install Rtools to compile the package.

# If you don't have devtools installed already
install.packages("devtools")

# Install socscrap package
devtools::install_github("gaalcaras/socscrap")

About

R package to teach webscraping to social scientists


Languages

Language:R 89.5%Language:CSS 10.5%