我想在页面内获取价格,然后将其乘以 0.93,然后将结果写在第一个价格之后。但我无法从页面获取价格。
例如我想从“900 TL”中获取“900 TL”字符串,
您可以通过访问http://www.sahibinden.com/cok_temiz_asus_f3jp_t7200_2ghz_2gb_ram_256_mb_harici_ekran_ka-49WQQaXQQ17829315WQQpXQQdisplayitem
非常感谢。
编辑:“f16 粗体”字符串在该页面上仅计数 1。所以也许我们可以得到“900 TL”。
i wanna get a price inside a page and then multiple it by 0.93 then write the result after first price. but i couldn't be able to grab the price from page.
for example i want to grap "900 TL" string from "900 TL"
you can see all codes of page by visiting http://www.sahibinden.com/cok_temiz_asus_f3jp_t7200_2ghz_2gb_ram_256_mb_harici_ekran_ka-49WQQaXQQ17829315WQQpXQQdisplayitem
thx a lot.
edit: the "f16 bold" string counts only 1 on that page. so maybe we can get "900 TL" with this..
发布评论
评论(1)
试试这个:
注意: getElementsByClassName 的浏览器支持很差(我相信在 Firefox 中,3.0+)。
Try this:
Note: getElementsByClassName has poor browser support (in Firefox, 3.0+ I believe).