
Web scraping using the curl R library from CRAN using the statistics software R
- or -
Post a project like this2379
$50
- Posted:
- Proposals: 3
- Remote
- #2153253
- Awarded
Description
Experience Level: Entry
I want to scrape the content this webpage with varying variables in the URL using the R curl library with some code like further down. However, in the browser Mozilla I can see the data but not get them with R:
library(curl)
urltxt <- "https://grouper.swissdrg.org/swissdrg/single?version=7.3&pc=1337_70_0_0_M_11_00_15_0_2018/08/07_2018/08/22_C18.4_C07_-_45.81.11$$&provider=acute&locale=de"
con <- curl(urltxt )
open(con)
# Get 3 lines
out <- readLines(con, n = 3)
cat(out, sep = "\n")
library(curl)
urltxt <- "https://grouper.swissdrg.org/swissdrg/single?version=7.3&pc=1337_70_0_0_M_11_00_15_0_2018/08/07_2018/08/22_C18.4_C07_-_45.81.11$$&provider=acute&locale=de"
con <- curl(urltxt )
open(con)
# Get 3 lines
out <- readLines(con, n = 3)
cat(out, sep = "\n")

Rene W.
100% (2)Projects Completed
2
Freelancers worked with
2
Projects awarded
40%
Last project
21 Oct 2018
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies