0

I am using XML package to read HTML tables from web sites.

Actually I'm trying to read a table from a local address, something like http://10.35.0.9:8080/....

To get this table I usually have to login into by typing login and password.

Therefore, when I run:

library(XML)
acsi.url <- 'http://10.35.0.9:8080/...'
acsi.df <- readHTMLTable(acsi.url, header = T, stringsAsFactors = F)
acsi.df

I see acsi.df isn't my table but the login page.

How can I tell R to input login and password and loggin on before reading the table?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Lisa Ann
  • 3,345
  • 6
  • 31
  • 42
  • if [this](http://stackoverflow.com/questions/4980912/username-and-password-in-https-url) doesn't help, please provide an example url we can use :) – Anthony Damico Dec 18 '12 at 13:07
  • Hi, Anthony Damico. Unfortunately the login page I'm trying to enter via R runs through my LAN, then I cannot provide you it. – Lisa Ann Dec 18 '12 at 15:35

1 Answers1

3

There is no general solution, you have to analyze the details of you login procedure, but package RCurl and the following link should help:

Login to WordPress using RCurl

Community
  • 1
  • 1
Dieter Menne
  • 10,076
  • 44
  • 67