腾讯通用采集任务文件
2022/1/31 2:55:101阅
请认真看说明,不代操作,如需要代操作,按每个任务10元收费代操作。
使用方法:
下载文件后压解文件,使用记事本打开000.asp文件。
附件:腾讯通用采集任务文件(rar/2.45KB)
1.设置定时任务
后台》基本管理》任务管理》添加任务
任务编号:数字
任务名称:
任务说明:
执行类型:时
执行周期:6
执行时间:默认
执行文件:/task/000.asp
任务状态:0
添加时间:默认
结束时间:默认
000.asp可重命名为其他文件名,以防重命。
2.设置任务编号
找到TaskId=0这行,将0改为第一步添加的任务编号。
3.设置入库分类
找到acatid=1这行,1为要入库的文章分类编号,需要修改为自己的网站文章分类编号,意思是将文章采集到本站那个分类。
文章分类编号在后台》文章管理》文章分类查看,一定要点击管理去看分类编号。
4.设置文章来源
找到asource="启约科技"这行,诺哈科技为文章来源,可修改,如果需要使用原来源,将asource="启约科技"改为以下代码。
asource=Split(Split(body3,"""source"":""")(1),"""")(0)
并找到以下几行将其删除。
Texts=Replace(Texts," 腾讯娱乐 "," 启约娱乐 ")
Texts=Replace(Texts," 腾讯科技 "," 启约科技 ")
Texts=Replace(Texts," 腾讯数码 "," 启约数码 ")
Texts=Replace(Texts," 腾讯娱乐讯"," 启约娱乐")
Texts=Replace(Texts," 腾讯科技讯"," 启约科技")
Texts=Replace(Texts," 腾讯数码讯"," 启约数码")
5.设置采集地址
找到Purl1="http://info.3g.qq.com/g/s?g_ut=3&aid=tech_l&pos=tech_topit"这行,http://info.3g.qq.com/g/s?g_ut=3&aid=tech_l&pos=tech_topit为采集地址,里面的内容需要是时常更新的。
找到Purl2="http://info.3g.qq.com/g/s?g_ut=3&aid=tech_ss&id=tech_"这行,http://info.3g.qq.com/g/s?g_ut=3&aid=tech_ss&id=tech_为文章地址,tech_后面是一串数字,不需要代入地址。
找到String1="&id=tech_"这行,&id=tech_为文章参数,即文章地址中数字之前的关键代码。
修改之后将文件上传至网站/task/目录即可。
常用采集地址设置
1.娱乐
Purl1="http://info.3g.qq.com/g/s?g_ut=3&aid=ent_l&pos=ent_gundong"
Purl2="http://info.3g.qq.com/g/s?g_ut=3&aid=ent_ss&id=ent_"
String1="&id=ent_"
2.财经
Purl1="http://info.3g.qq.com/g/s?g_ut=3&aid=finance_l&pos=finance_yaowenall"
Purl2="http://info.3g.qq.com/g/s?g_ut=3&aid=finance_ss&id=finance_"
String1="&id=finance_"
3.科技
Purl1="http://info.3g.qq.com/g/s?g_ut=3&aid=tech_l&pos=tech_xyw"
Purl2="http://info.3g.qq.com/g/s?g_ut=3&aid=tech_ss&id=tech_"
String1="&id=tech_"
4.笑话
Purl1="http://info.3g.qq.com/g/s?g_ut=3&aid=news_l&pos=joke_jrml"
Purl2="http://info.3g.qq.com/g/s?g_ut=3&aid=joke_ss&id=joke_"
String1="&id=joke_"
5.互联网
Purl1="http://info.3g.qq.com/g/s?g_ut=3&aid=tech_l&pos=tech_tophlw"
Purl2="http://info.3g.qq.com/g/s?g_ut=3&aid=tech_ss&id=tech_"
String1="&id=tech_"
6.IT业界
Purl1="http://info.3g.qq.com/g/s?g_ut=3&aid=tech_l&pos=tech_topit"
Purl2="http://info.3g.qq.com/g/s?g_ut=3&aid=tech_ss&id=tech_"
String1="&id=tech_"