我想爬下我们学校网站的选课
但是网站登陆是分两个页面的, 一个页面输账号,一个页面输密码,这应该如何模拟登陆
我想爬下我们学校网站的选课
但是网站登陆是分两个页面的, 一个页面输账号,一个页面输密码,这应该如何模拟登陆
|
pubbyOct 11, 2015 via Android
1
想办法支持 cookie
|
|
loshine1992Oct 11, 2015
2
推荐使用 Jsoup
|
|
kaedeaOct 11, 2015
3
HttpClient
|
|
inmyfreeOct 12, 2015
4
DefaultHttpClient httpclient = new DefaultHttpClient();
CookieStore cookieStore = new BasicCookieStore(); httpclient.setCookieStore(cookieStore); HttpClientStack mHttpStack = new HttpClientStack( httpclient); RequestQueue mRequestQueue = Volley.newRequestQueue(getApplicationContext(),NotesApp.getmHttpStack()); |
|
inmyfreeOct 12, 2015
5
错了,一个地方没改,最后一个改为:
RequestQueue mRequestQueue = Volley.newRequestQueue(getApplicationContext(),mHttpStack ); |