
//得到置顶贴 c-(\d+)\.aspx\p\S(\N+)\</a
//%\<\>(\N+)\</s 从置顶贴中取出加了东东的文章
import inet.whttp;
import win;

var http=inet.whttp()
var html=http.down("http://www.ecranesoft.com/bbs/showforum-31.aspx")
//读网页
var url="http://www.ecranesoft.com/bbs/"
var id,t,t3={},{},{}

if(html){
for m,m2 in string.gmatch(html ,"c-(\d+)\.aspx\p\S(\N+)\</") { 
table.insert(id,m)
table.insert(t,m2)//T中还没处理出有加东西的标题
} 

}

for(i=1;table.count(t);1){
var t2=string.match(t[i],"%\<\>(\N+)\</s")
if(t2){
table.insert(t3,t2)
}
else{
table.insert(t3,t[i])
}
}
table.reverse(t3)

for(i=1;table.count(id);1){
var str= string.toUnicode(t3[i],65001);
str = string.fromUnicode(str,0);
io.print("地址：",url+"/showtopic-"+id[i]+".aspx","  贴名:"+str)
}
 