How to scrap data with Nokogiri from this page?

how to scrap data with Nokogiri from this page?
is it easy for Nokogiri to scrap data?maybe or maybe not ,because of
different kinds of web structures.
please the following web page,

http://quote.cfi.cn/quote.aspx?zqlb=0&stockcode=601398&lx=资产负债表

there is a table in it ,i can’t do it,please help me to scrap data with
Nokogiri from it?

the following is the html file.

601398_工商银行_资产负债表_中财网
<style type="text/css"  >
  a {color:rgb(115,103,73)}
  td {text-align:left}
  h1 {font-size:12pt;font-weight:bold}
  #tbatb table {margin:10px 0px 20px 0px}
</style>
<script type="text/javascript" >
function nwin(stockcode,stype){
   window.open("http://so.cfi.cn/so.aspx?w=baselink&txquery=" +

stockcode+"&stype="+stype);
}

</script>
<div style="width:850px;text-align:center;margin:10px 10px 10px

10px;border:solid 1px rgb(200,200,200);">


<td style="width:550px;text-align:right">

<form action="quote.aspx"  target="_self" style="margin:0px 0px 5px

0px">

     ä¸ªè‚¡æŸ¥è¯¢ï¼šï¼ˆè¾“å…¥ä»£ç æˆ–æ‹¼éŸ³é¦–å­—æ¯ï¼‰<input class="form" style="FONT-SIZE: 12pt"

type=“text” maxLength=“10” size=“6” name=“stockcode”/>   


CFi .CN 中财网·个股频道

<div id="quote" style="width:850px;FONT-FAMILY: FONT-FAMILY:

Microsoft YaHei, calibri, verdana;
background-color:rgb(240,240,240);margin:0 0 0 0;padding:0px 0px 2px
5px;border:solid 1px rgb(100,100,100);">601398 工商银行 最新:4.81 涨跌:-0.09 -1.84% 涨跌幅排名(A股):<span
style=2682 成交量:5244.57万股

<div id="basemenu" style="width:850px;

background-color:rgb(240,240,240);margin:0 0 0 0;padding:5px 0px 5px
5px;font-size:14px;border:solid 1px
rgb(100,100,100);line-height:20px">[行情报价]
[<a href=“javascript:” onClick=nwin(‘601398’,’’)
style=‘color:rgb(115,103,73);’>搜索消息]
[<a href=“javascript:” onClick=nwin(‘601398’,‘d’)
style=‘color:rgb(115,103,73);’>图表]
[评论]

[基本资料]
[公司概况]
[股本结构]
[主要股东]
[股东户数]

[主力动向]
[高管及年薪]
[发行与申购]
[业绩预告]
[利润分配表]

[资产负债表]
[现金流量表]
[经营能力]
[最新大事]
[分红派息]

[配股]
[增发]
[公司公告]
[报表原文]
[财报分析]

601398-资产负债表

2009-12-312009-9-302009-6-302009-3-312008-12-31现金1693048000000.001777512000000.001648941000000.001684779000000.001693024000000.00贵金属2699000000.002662000000.002723000000.002953000000.002819000000.00存放中央银行款项------存放同业款项157395000000.00141481000000.0088574000000.0035008000000.0041571000000.00拆放同业77906000000.00114737000000.0088298000000.00151416000000.00126792000000.00拆放金融性公司------短期贷款------抵押贷款------进出口押汇------应收股利------应收利息------应收账款------其他应收款------减:坏账准备------应收款项净额------预付帐款------短期投资------短期投资跌价准备------贴现------委托贷款------代理证券------买入返售证券408826000000.00564082000000.00943284000000.00764461000000.00163493000000.00待摊费用------待处理流动资产净损失------一年内到期的长期债权投资------一年内到期的其他长期投资------其他流动资产------流动资产合计------中长期贷款5583174000000.005441698000000.005300116000000.005072907000000.004436011000000.00其中:中期贷款------其中:长期贷款------逾期贷款------呆滞贷款------呆账贷款------非应计贷款------减:贷款损失准备------应收租赁款------减:未收租赁收益------租赁资产------减:待转租赁资产------长期股权投资36278000000.0035670000000.0033880000000.0027408000000.0028421000000.00长期债权投资------长期投资合计------减:长期投资减值准备------长期投资净额------固定资产原价84626000000.0076531000000.0076891000000.0078166000000.0079759000000.00减:累计折旧------固定资产净值------减:固定资产减值准备------固定资产净额------在建工程------减:在建工程减值准备------在建工程净额------固定资产清理------待处理固定资产净损失------固定资产合计------长期资产合计------æ— å½¢èµ„äº§------开办费------长期待摊费用------待处理抵债资产------减:抵债资产减值准备------其他长期资产------æ— å½¢èµ„äº§åŠå…¶ä»–èµ„äº§åˆè®¡------递延税款借项18696000000.0020786000000.0011390000000.008634000000.0010775000000.00资产总计11785053000000.0011670134000000.0011435086000000.0010978966000000.009757654000000.00短期存款------短期储蓄存款------财政性存款------向中央银行借款------票据融资------同业存放款项931010000000.00914626000000.00971328000000.00879103000000.00592607000000.00同业拆入70624000000.0049510000000.0039930000000.0051964000000.0053647000000.00应付利息------应付代理证券款项------卖出回购证券款36060000000.006046000000.006877000000.004957000000.004648000000.00汇出汇款------应解汇款------委托存款------受托资金------存入短期保证金------应付账款------应付工资20772000000.0020408000000.0019021000000.0016121000000.0019942000000.00应付福利费------应付股利------应交税金28626000000.0018303000000.0019834000000.0047626000000.0044979000000.00其他应交款------其他应付款------预提费用------预计负债------发行短期债券------一年内到期的长期负债------其他流动负债------流动负债合计------长期存款9771277000000.009750836000000.009533117000000.009113767000000.008223446000000.00长期储蓄存款------发行长期债券------存入长期保证金------长期应付款------其他长期负债------长期负债合计------递延税款贷项178000000.00221000000.0078000000.008000000.0016000000.00负债合计11106119000000.0011019227000000.0010814166000000.0010338381000000.009150516000000.00少数股东权益------股本334019000000.00334019000000.00334019000000.00334019000000.00334019000000.00资本公积102156000000.00103342000000.00108955000000.00111356000000.00112461000000.00盈余公积37484000000.0024659000000.0024650000000.0024650000000.0024650000000.00其中:公益金------一般准备84222000000.0069378000000.0069370000000.0069362000000.0069355000000.00未分配利润117931000000.00116909000000.0083331000000.00107292000000.0072146000000.00外币报表折算差额-1919000000.00-2097000000.00-3909000000.00-10127000000.00-9448000000.00股东权益合计673893000000.00646210000000.00616416000000.00636552000000.00603183000000.00负债和股东权益总计11785053000000.0011670134000000.0011435086000000.0010978966000000.009757654000000.00----减:已归还投资----------转贷款资金----------应付存款证----------其中:应付可转换公司债券-------------议付信用证款项----------其中:现金股利----------系统内存款----------应付次级债券----------股本净额----------结构性存款----------联行存放款项----------递延收益----------递延支出----------发行存款证券----------存放联行款项----------存放系统内款项----------待摊利息------æœ€æ–°æ ‡å¿—00
截止日期
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
---------
000
 <div id="cfiadcode1" style="display :none">
                   <script type="text/javascript"

src=“newsbar.aspx?catid=A0A1A1728A1829”>

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs