|
@@ -71,8 +71,9 @@ function downloadAndParseListPage(pageno)
|
|
item["title"]="%s"--信息标题
|
|
item["title"]="%s"--信息标题
|
|
item["publishtime"]="%s"--信息时间
|
|
item["publishtime"]="%s"--信息时间
|
|
item=findMap(item,"<table><tr>"..v.."</tr></table>")
|
|
item=findMap(item,"<table><tr>"..v.."</tr></table>")
|
|
- if item["title"]~=nil and item["title"]~="" then
|
|
|
|
|
|
+ if item["title"]~=nil and item["title"]~="" then --title校验
|
|
item["title"]=com.trim(item["title"])
|
|
item["title"]=com.trim(item["title"])
|
|
|
|
+ sendListNum(k,list) --推送下载量
|
|
local timeType="%s"
|
|
local timeType="%s"
|
|
item["publishtime"]=com.parseDate(item["publishtime"],timeType)--时间格式
|
|
item["publishtime"]=com.parseDate(item["publishtime"],timeType)--时间格式
|
|
item["href"]=com.gethref(spiderTargetChannelUrl,item["href"])
|
|
item["href"]=com.gethref(spiderTargetChannelUrl,item["href"])
|
|
@@ -81,7 +82,6 @@ function downloadAndParseListPage(pageno)
|
|
table.insert(page,item)
|
|
table.insert(page,item)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
- sendListNum(list)--推送下载量
|
|
|
|
end
|
|
end
|
|
if table.getn(page)>0 then
|
|
if table.getn(page)>0 then
|
|
return page
|
|
return page
|