Java抓取网页中的内容


今天工作中需要抓取网页中的内容,弄了两个小时搞定了,记录如下。

需求就是抓取实时的汇率

运行结果如下:

代码地址:http://code.google.com/p/catchwebhtmlcontent/downloads/list

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: