Authored by 刘志远

Merge branch 'feature/ip-list' into 'master'

修改ip地址

修改ip地址

See merge request !41
@@ -19,7 +19,7 @@ const app = express(); @@ -19,7 +19,7 @@ const app = express();
19 global.isProduction = process.env.NODE_ENV === 'production'; 19 global.isProduction = process.env.NODE_ENV === 'production';
20 global.sender = new Sender(config.monitorReport); // 初始化数据上报 20 global.sender = new Sender(config.monitorReport); // 初始化数据上报
21 21
22 -schedule.scheduleJob('0 45 6-23 * * *', () => { 22 +schedule.scheduleJob('0 15 6-23 * * *', () => {
23 logger.info('[process]task start spiderTask'); // 比价任务 23 logger.info('[process]task start spiderTask'); // 比价任务
24 spiderTask(dayjs().unix()); 24 spiderTask(dayjs().unix());
25 }); 25 });
@@ -38,7 +38,31 @@ const requestDu = (params, type) => { @@ -38,7 +38,31 @@ const requestDu = (params, type) => {
38 }; 38 };
39 } 39 }
40 // 爬虫 123.206.21.19 百度 220.181.38.148 搜狗 221.122.82.30 搜搜 106.39.246.42 360搜索 36.110.236.68 有道 220.181.76.83 雅虎 124.108.103.103 40 // 爬虫 123.206.21.19 百度 220.181.38.148 搜狗 221.122.82.30 搜搜 106.39.246.42 360搜索 36.110.236.68 有道 220.181.76.83 雅虎 124.108.103.103
41 - let ipList = ['220.181.38.148', '221.122.82.30', '106.39.246.42', '36.110.236.68', '220.181.76.83', '124.108.103.103']; 41 +
  42 + // 必应 202.89.233.100 慧聪 180.97.232.53 淘宝 140.205.220.96 天猫 124.236.61.227 京东 120.52.148.118 国搜 1.180.19.71 新浪搜索 183.60.95.142
  43 +
  44 + // 新浪 123.126.157.222 今日头条 140.249.240.234 人民搜索网 61.164.153.222 凤凰搜索网 49.233.102.63 乐搜 220.181.90.8 央视搜索 115.182.34.79
  45 +
  46 + let ipList = [
  47 + '221.122.82.30',
  48 + '106.39.246.42',
  49 + '36.110.236.68',
  50 + '202.89.233.100',
  51 + '180.97.232.53',
  52 + '140.205.220.96',
  53 + '124.236.61.227',
  54 + '120.52.148.118',
  55 + '1.180.19.71',
  56 + '183.60.95.142',
  57 + '123.126.157.222',
  58 + '140.249.240.234',
  59 + '61.164.153.222',
  60 + '49.233.102.63',
  61 + '220.181.90.8',
  62 + '115.182.34.79',
  63 + '124.64.19.86',
  64 + '124.64.30.120'
  65 + ];
42 let index = Math.floor((Math.random()*ipList.length)); 66 let index = Math.floor((Math.random()*ipList.length));
43 let ip = ipList[index]; 67 let ip = ipList[index];
44 return rp({ 68 return rp({