问题
I was wondering if there is something like Perl's/Python's mechanize for Java.
Thanks!
回答1:
Take a look at HtmlUnit. It is similar to Perl's WWW::Mechanize. There is also a Perl version of it named WWW::HtmlUnit (it uses Inline::Java to expose the Java library's methods to Perl).
回答2:
Yes, there is now! I too wanted mechanize in Java and we've written it.
Please check out http://gistlabs.com/software/mechanize-for-java/ (and the GitHub here https://github.com/GistLabs/mechanize).
Feedback, bug reports, and success stories welcome!!
回答3:
Are you thinking of a generalized web client, like HttpClient?
来源:https://stackoverflow.com/questions/2867499/mechanize-for-java