修改蛋蛋赞网站抓取逻辑
This commit is contained in:
parent
7eca9de8ab
commit
65abe220ee
@ -171,18 +171,18 @@ const parseAllMovie = async (category, beginNo = 1) => {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
run: async () => {
|
run: async () => {
|
||||||
// return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
// generalQueue.setCb(function () {
|
generalQueue.setCb(function () {
|
||||||
// console.log('====crawl movie finished', dateformat('yyyy-mm-dd HH:MM:ss'));
|
console.log('====crawl movie finished', dateformat('yyyy-mm-dd HH:MM:ss'));
|
||||||
// resolve()
|
resolve()
|
||||||
// })
|
})
|
||||||
// console.log('====crawl movie begin', dateformat('yyyy-mm-dd HH:MM:ss'));
|
console.log('====crawl movie begin', dateformat('yyyy-mm-dd HH:MM:ss'));
|
||||||
// await parseAllMovie('movie');
|
await parseAllMovie('movie');
|
||||||
// await parseAllMovie('tv');
|
await parseAllMovie('tv');
|
||||||
// await parseAllMovie('show');
|
await parseAllMovie('show');
|
||||||
// await parseAllMovie('cartoon');
|
await parseAllMovie('cartoon');
|
||||||
// })
|
})
|
||||||
parseOnePage({subLink:'/dianshiju/31701.html', category:'tv', sortIdx:0});
|
// parseOnePage({subLink:'/dianshiju/31701.html', category:'tv', sortIdx:0});
|
||||||
|
|
||||||
},
|
},
|
||||||
parseListPage: parseListPage,
|
parseListPage: parseListPage,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user