|
淘宝宝贝的宝贝详情就例如这个页面
http://item.taobao.com/auction/i ... 8fdab819f52e2.jhtml
的宝贝详情怎么采集啊?
代码是这样的
<div id="description" class="box J_DetailSection">
<h4 class="hd" style="display: none;">宝贝详情</h4>
<div id="J_DivItemDesc" class="content">读取中...</div>
<script>
(function(w, d) {
var s = d.createElement('SCRIPT');
s.id = 'J_ItemDescScript';
s.defer = 'defer';
s.charset = 'gbk';
if (!-[1,]) { // ie
s.onreadystatechange = function() {
if ('loaded' === s.readyState || 'complete' === s.readyState) {
s.onreadystatechange = null;
c();
}
};
} else {
s.onload = c;
}
s.src = 'http://dsc01.taobao.com/i1/4b0/8b1/4b28ba492df52276320bcf4ae7288ce1/T18ZRxXndtXXXXXXXX.desc|var^desc;sign^e76f2145a61d5ea470d127288d572a11;lang^gbk;t^1271067611';
d.getElementsByTagName('head')[0].appendChild(s);
var n = 500;
function c() {
if(n === 500) {
w.g_hubble_item_desc_loaded = +new Date;
}
if (!w.g_decorateItemDesc && --n > 0) {
setTimeout(c, 40);
} else if (w.g_decorateItemDesc) {
g_decorateItemDesc();
}
}
w.g_item_desc_requested = true;
w.g_hubble_item_desc_requested = +new Date;
})(window, document);
</script>
</div>
这怎么采集啊!!! |
|