简体   繁体   中英

POST Password and Email data to Google Sign-in

All- I have the code:

doc = Jsoup.connect("https://play.google.com/apps/publish/Home?dev_acc=00758402038897917238")
                      .data("input#Email", "email@gmail.com")
                      .data("input#Passwd", "123abcABC123" )
                      .post();

I got his from here: SO question but could not figure out what is wrong. I am getting the sign in page instead of the page displaying all my published apps. I belive the problem might lie in the input#Email and input#Passwd but I am not sure. I don't quite understand what that is supposed to refer to. So my question: how can I login to my developer console using code similar to the one above and what is supposed to go where input#Email and input#Passwd are?

In post you have to use names, not css selectors:

doc = Jsoup.connect("https://play.google.com/apps/publish/Home?dev_acc=00758402038897917238")
                      .data("Email", "email@gmail.com")
                      .data("Passwd", "123abcABC123" )
                      .post();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM