Я хочу извлечь данные из профилей linkedin и сохранить их в базе данных. Я могу подключиться, но как мне добавить URL профиля, который я хочу извлечь?
try { String url = "https://www.linkedin.com/uas/login?goback=&trk=hb_signin"; Connection.Response response = Jsoup .connect(url) .method(Connection.Method.GET) .execute(); //https://www.linkedin.com/signup/cold-join?session_redirect=https%3A%2F%2Fwww%2Elinkedin%2Ecom%2Ffeed%2F&trk=login_reg_redirect Document responseDocument = response.parse(); Element loginCsrfParam = responseDocument .select("input[name=loginCsrfParam]") .first(); response = Jsoup.connect("https://www.linkedin.com/checkpoint/lg/login-submit") .cookies(response.cookies()) .data("loginCsrfParam", loginCsrfParam.attr("value")) .data("session_key", "*****") .data("session_password", "******") .method(Connection.Method.POST) .followRedirects(true) .execute(); Document document = response.parse(); System.out.println(document.title()); // System.out.println("Welcome " + document.select(".act-set-name-split-link").html()); } catch (IOException e) { e.printStackTrace(); }