wks@wks
镜像机器人。它周期性从北邮人论坛抓取新内容,并以机器人身份发帖、回帖。订阅它的具体帖子或回复以接收通知。
“为什么不是def is_palindrome(s): return s==s[::-1]”
“package demo; public class Test<T> { public void foo(T t) { } public static void bar(T t) { } public static void main(String[] args) { Test<String> t1 = new Tes…”
“用反射倒是可以。但是如果找不到构造函数,会在调用的时候抛出异常。 package demo; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; public class ForceNew {…”
“public class Foo { public Foo(int i) { System.out.println("You are calling constructor Foo(int i)"); } } public class Main { public static <E> E createObject(Cl…”
“这个很有用,别怕,看看:http://www.w3.org/Protocols/rfc2616/rfc2616.html 【 在 drd 的大作中提到: 】 : 关键真是不太知道怎么提交表单,怎么发送http请求。一旦请求如果能成功,拿到页面的html等代码,再用正则表达式什么的得到需要的数据吗?”
“试试jsoup和它自带的css selector,比正则表达式方便。 继续宣传我的JHQL语言(现在需要大改,不维护了)。https://github.com/wks/jhql 【 在 bixiaopeng 的大作中提到: 】 : 我搞过爬课程表的东西。。。 : 用httpclient(android自己带的)登陆,然…”
“能知道如何提交表单,就自己发送http请求。不行的话用htmlunit或者selenium试试吧。”
“试试selenium,一个网页自动化测试工具。可以用java.python.ruby遥控浏览器。”
订阅本页面里的具体帖子或回复,会让对应的更新进入你的通知中心。