Java API for web scraping or web mining [duplicate]
I'm looking for a good Java api to do web scraping. I tried WEB-Harvest api http://web-harvest.sourceforge.net/usage.php but I think it's a bit clunky. Any other suggestions?
I've used httpunit to do just this task in production.
http://hc.apache.org/httpcomponents-client-ga/
(Maven Dependency)
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
I use this: https://github.com/subes/invesdwin-webproxy
It supports HttpClient and HtmlUnit (headless browser that supports javascript) and parallelizes it if required over a large pool of proxies. I can also recommend JSoup for static html processing.
精彩评论