python登录天猫淘宝网站的棘手问题,主要就是卡在登录上了,请问大神们还有啥好的方法吗跪求指点!

天猫不了解,不过最近爬1688发现一个有意思的内容。登陆页面的登陆框div,其实是重定向到另一个页面,你需要到那个页面提交才有用。比如1688,通过firebug查看登陆框的代码可以看到,其实是这样的。\u0026lt;form id="J_Form" action="/member/login.jhtml?redirectURL=https%3A%2F%2Flogin.1688.com%2Fmember%2Fjump.htm%3Ftarget%3Dhttps%253A%252F%252Flogin.1688.com%252Fmember%252FmarketSigninJump.htm%253FDone%253Dhttp%25253A%25252F%25252Fwww.1688.com%25252F" method="post"\u0026gt;action里面是个重定向post的过程。具体URL是这个:https%3A%2F%2Flogin.1688.com%2Fmember%2Fjump.htm%3Ftarget%3Dhttps%253A%252F%252Flogin.1688.com%252Fmember%252FmarketSigninJump.htm%253FDone%253Dhttp%25253A%25252F%25252Fwww.1688.com%25252F然而很明显这是通过编码的,需要解码。最终结果是这样的。https://login.1688.com/member/jump.htm?target=https://login.1688.com/member/marketSigninJump.htm?Done=http://www.1688.com/
■网友
推荐用PHP的curl模拟登录
■网友
selenium登录报了什么错,完整的报错信息是什么?


    推荐阅读