I need to register on Linkedin with Jsoup, preferably.
This is what I use to log in to another site, but it does not work for Linkedin.
Connection.Response res = Jsoup .connect("https://www.linkedin.com/uas/login?goback=&trk=hb_signin") .data("session_key", mail, "session_password", password) .method(Connection.Method.POST) .timeout(60000). // Also tried "https://www.linkedin.com/uas/login-submit" Map<String, String> loginCookies = res.cookies(); //Checking a profile to see if it was succesful or if it returns the login page. Document currentPage = Jsoup.connect(someProfileLink).cookies(loginCookies).timeout(10000). System.out.println("" + currentPage.text());
What am I doing wrong?
I need to be able to retrieve user profiles using a web crawler, but no matter what I try, I cannot get login cookies.
source share