Message Boards Message Boards

0
|
6580 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Import with Login

Posted 9 years ago

How does one import data from an URL which requires login?


How do we proceed if the login is done through another site e.g. Facebook?

POSTED BY: Sandu Ursu
Posted 9 years ago

Hi, everyone!

Not so long time ago, I was able to login on facebook and get the data I was interested in following the procedure described by WReach here:

http://mathematica.stackexchange.com/questions/2362/how-to-manipulate-web-pages-on-mathematica

which for facebook could be summarised in 2 steps:

1 - assign values to the parameters:

$parametersfb = {"email" -> "email@address.com", "pass" -> "password"};

2 - import data given the parameters:

Import["https://www.facebook.com/login.php?login_attempt=1", "Data", 
 "RequestMethod" -> "POST", "RequestParameters" -> $parametersfb]

This is no longer possible. Can anyone help me understand why?

POSTED BY: Sandu Ursu
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract