Teaching webscraping to social scientists!
The package provides:
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)?get_ratings
)data(ratings)
)inst/slides
) to learn
moresocscrap
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.