getHTML | R Documentation |
Returns HTML from an URL obained via GET-request.
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, ... )
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. |
Returns HTML from an URL obained via GET-request. Assumes UTF-8 encoding by default. Returns a character element containing HTML-code.
getHTML()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.