result = result+Drawtext2("<!-- 正文页概述信息 begin -->","<!-- 正文页概述信息 end -->",PreCode);
result = result+Drawtext2("<!-- 正文部分 begin -->","<!-- 正文部分 end -->",PreCode);
result = result+Drawtext2("<!-- 正文内容 begin -->","<!-- 正文内容 end -->",PreCode);
//添加标签
if(result.length()<10)
return;
save(result);
}
static void DrawBCode(String PreCode) //网页源码为参数,抓取博客内容
{
String result = "";
result = result+Drawtext1("<title>","</title>",PreCode);
result = result+'\n';
result = result+Drawtext1("<!-- 正文开始 -->","<!-- 正文结束 -->",PreCode);
result = deal01(result);
save(result);
}
static boolean isshtml(String url)
{
int lastd = url.lastIndexOf('.');
int size = url.length();
String end = url.substring(lastd+1, size);
if(end.compareTo("shtml")==0)
return true;
else return false;
}