import console;
import godking.http
import zlib
var htm,h = godking.http({
url = "http://www.xinbqg.la/80/80145/34584488.html"; /*完整网址*/
ungzip = true; /*进行gzip解压缩。false:不解压。true:自动根据响应头识别解压缩。"all":一律解压缩。需zlib库支持,请先 import zlib*/
})
//console.dump(htm)
import string.html
var html = string.html(htm)
//console.dump(html)
for ele in html.eachQuery(tagName="div";id="content"){
for(i=1;#ele;1){
var t = string.html.ncr(ele[i]["text"]:ele[i][[1]][["text"]]:"");
if #t console.dump(t);
}
}
console.pause(true);