//配置部分,您可以在这里直接修改配置参数
InitLink("http://www.job01.cn/channel.do?handle=SearchJobView_searchJob&%20city=&jTypeId=&handle=SearchJobView_searchJob®Id=&headhunt=0&jobId=&jobKeyword=%C8%D5%D3%EF&experience=0&islowe=1&consult=0&deal=&isLowConsult=1°ree=0&islow=1&sex=2&page=1")
//-----------------------------------------------------------
//代码部分
function main
//这是TPF脚本的主函数,请将代码写在这里
printf("hello a.")
for(_$int0,1,10)
{
strcat("http://www.job01.cn/channel.do?handle=SearchJobView_searchJob&%20city=&jTypeId=&handle=SearchJobView_searchJob®Id=&headhunt=0&jobId=&jobKeyword=%C8%D5%D3%EF&experience=0&islowe=1&consult=0&deal=&isLowConsult=1°ree=0&islow=1&sex=2&page=",_$int0,_$str0)
gotourl(_$str0,sub1)
}
end
function sub1
_$str1=html[0].body[0].div[2].div[0].div[1].div[4].form[0].div[0].div[0].div[1].table[0].tr[0].td[1].div[0].ul[0].li[0].div[1].a[0].text
printf(_$str1)
end
网页采集问题测试
最新推荐文章于 2025-06-24 11:11:19 发布