V
V
vyn2017-03-01 19:21:15
Java
vyn, 2017-03-01 19:21:15

Web scraping of statistics from wordstat.yandex. How to log in?

Good afternoon! The task is to get view statistics for a certain keyword from wordstat.yandex.ru. I use jsoup for this. The code is as follows
Document doc= Jsoup.connect(" https://passport.yandex.ru/passport?mode=auth&from... "+URLEncoder.encode(" https://wordstat.yandex.ru/#!/history " ,"UTF-8")+"&twoweeks=yes")
.data("passwd","passwd")
.data("login","login")
.post();
In response, I get html that does not meet expectations (part of the document)
Attention
Automatic redirection to the site
is not possible.
This means that you cannot automatically redirect your browser to this site for one of two reasons:

  1. This site is someone else's and we believe it belongs to phishers . If you mistakenly mistook someone else's site for Yandex and entered your username and password there, we recommend that you change your password
    as soon as possible . If you trust this other site, you can follow the link yourself:
  2. Perhaps our internal error has occurred.
    Please report this incident to the support service by clicking on the link [email protected] .
    If you are not using a mail program, or nothing happens when you click on the link, please send the error code to [email protected]: cGFzcy1zMi4zMjY0LnJyZXRwMC4xNDg4Mzg0OTUy.
You can read more about our attitude to personal information in the " Information Confidentiality Agreement ". To register and authorize on Yandex projects , we recommend using the Yandex home page or  Yandex.Passport .
What's wrong? Thank you for your reply.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question