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