Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
R
 
 
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

CRAN status Grand total pipeline status R build status

wikisourcer

Download public domain works from Wikisource

The package wikisourcer helps you download public domain works from the free library Wikisource.

It includes two functions for downloading books and pages by url.

  • wikisource_book() to download a book.
  • wikisource_page() to download a page.

Installation

install.packages("wikisourcer") # or devtools::install_github("lgnbhl/wikisourcer")

Minimal examples

Download Voltaire’s philosophical novel Candide.

library(wikisourcer)

wikisource_book(url = "https://en.wikisource.org/wiki/Candide")

Download Chapter 1 of Candide.

wikisource_page("https://en.wikisource.org/wiki/Candide/Chapter_1", 
                page = "Chapter 1")

Download Candide in French, Spanish and Italian.

library(purrr)

fr <- "https://fr.wikisource.org/wiki/Candide,_ou_l%E2%80%99Optimisme/Garnier_1877"
es <- "https://es.wikisource.org/wiki/C%C3%A1ndido,_o_el_optimismo"
it <- "https://it.wikisource.org/wiki/Candido"

purrr::map_df(c(fr, es, it), wikisource_book)

For more information on how to use wikisourcer, please read the vignette.

About

πŸ“š Download Public Domain Works from Wikisource (https://felixluginbuhl.com/wikisourcer)

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.