getHTML: Function getHTML

getHTMLR Documentation

Function getHTML

Description

Returns HTML from an URL obained via GET-request.

Usage

getHTML(
  url = "https://scholar.google.de/citations?user=-TjY7oEAAAAJ&hl=de&oi=sra",
  encoding = "UTF-8",
  save = F,
  filename = NULL,
  closeCon = F,
  method = "libcurl",
  silent = T,
  curlGetHeaders = F,
  browseURL = F,
  ...
)

Arguments

url

Character string speficying a valid URL.

encoding

Character value specifying the encoding. Defaults to "UTF-8".

save

Logical value specifying whether the HTML-code should be saved to a txt-file.

filename

Character value specifying the filename (if save is TRUE). If NULL (default) as.numeric(Sys.time()) is applied.

closeCon

Logical value specifying whether to close open connections before and after scraping. defaults to F.

method

Character value specifying the method. Defaults to "libcurl".

silent

Logical value specifying whether to skip informative messages. Defaults to T.

browseURL

Locgical value specifying wether to open the URL in a web-browser. Defaults to F.

curlHeaders

Logical value specifying whether to apply curlHeaders. Defaults to F.

headers

Logical value.

Details

Returns HTML from an URL obained via GET-request. Assumes UTF-8 encoding by default. Returns a character element containing HTML-code.

Examples

getHTML()

AndreasFischer1985/quantqual documentation built on June 20, 2022, 4:55 p.m.