Skip to content

Instantly share code, notes, and snippets.

@baobabprince
Created December 6, 2020 22:15
Show Gist options
  • Save baobabprince/6496058a3249a7f5d4e500b3ee25615c to your computer and use it in GitHub Desktop.
Save baobabprince/6496058a3249a7f5d4e500b3ee25615c to your computer and use it in GitHub Desktop.
get hebrew date from internet
# get hebrew date from internet
hebrew.date <- function(){
api <- httr::GET("https://www.hebcal.com/etc/hdate-he.js")
html <- httr::content(api, as = "text")
heb <- gsub("\\w" , "" , html, perl = T)
gsub("[[:punct:]\n]","" ,heb)
}
hebrew.date()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment