如何获得优酷视频里面的“播放次数” 可以参考开源的 Crawler4J。https://code.google.com/p/crawler4j/http://hc.apache.org/httpcomponents-client-ga/ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用httpclient模拟浏览器访问视频的页面,得到页面代码(是个字符串),在分割页面到播放次数java.net.URL l_url = new java.net.URL("视频对应的url"); java.net.HttpURLConnection l_connection = (java.net.HttpURLConnection) l_url.openConnection(); l_connection.connect(); l_urlStream = l_connection.getInputStream(); java.io.BufferedReader l_reader = new java.io.BufferedReader(new java.io.InputStreamReader(l_urlStream)); String str=l_reader.readLine(); //分割返回的网页代码 struts2.0 请大家帮忙给我估一下下面这个网站值多少钱http://5360.qcqc.net/index.asp struts数据传递的问题 如何在sybase中创建自增长的列 用JSP能实现把任意文件添加到打印列表中吗? 如何接收从window.showModalDialog打开的窗口中接受参数? web.xml的老问题 tomcat + oracle问题 我启动Tomcat的startup.bat时,屏幕一闪而过,这是怎么回事? JSP分页! Spring MVC中关于成员变量的释放问题,请指教 急急急急急
java.net.URL l_url = new java.net.URL("视频对应的url");
java.net.HttpURLConnection l_connection = (java.net.HttpURLConnection) l_url.openConnection();
l_connection.connect();
l_urlStream = l_connection.getInputStream();
java.io.BufferedReader l_reader = new java.io.BufferedReader(new java.io.InputStreamReader(l_urlStream));
String str=l_reader.readLine();
//分割返回的网页代码