crubba / Wiley-ADCR

Repository for the book "Automated Data Collection with R"
41 stars 76 forks source link

9.1.6 HTTP authentication failed (p.245) #6

Open MotohiroIshida opened 8 years ago

MotohiroIshida commented 8 years ago

It says:

url <- "www.r-datacollection.com/materials/solutions" cat(getURL(url, userpwd = "teacher:sesame", followlocation = TRUE))etURL(url, userpwd = "teacher:sesame", followlocation = TRUE))

but we got just Error: "Basic authentication cancelled." One or both of Username and Password are invalid?

crubba commented 8 years ago

Thanks for bringing this to our attention. We are looking into it asap.

coderLMN commented 7 years ago

That's because userpwd = "teacher:sesame" is only a fictional example of user/password combination. It seems that only real teachers will be given a user for that content.

BTW, I'm the translator of the Chinese version. And there are some interesting discussions in my Github repo https://github.com/coderLMN/AutomatedDataCollectionWithR/issues , such as methods to collect web contents inside a iFrame tag, the compatibility problem between Selenium v3.01 and firefox, and HTTPS local CA file error.