Authored by 刘志远

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

修改ip地址

修改ip地址

See merge request !41
... ... @@ -19,7 +19,7 @@ const app = express();
global.isProduction = process.env.NODE_ENV === 'production';
global.sender = new Sender(config.monitorReport); // 初始化数据上报
schedule.scheduleJob('0 45 6-23 * * *', () => {
schedule.scheduleJob('0 15 6-23 * * *', () => {
logger.info('[process]task start spiderTask'); // 比价任务
spiderTask(dayjs().unix());
});
... ...
... ... @@ -38,7 +38,31 @@ const requestDu = (params, type) => {
};
}
// 爬虫 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
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'];
// 必应 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
// 新浪 123.126.157.222 今日头条 140.249.240.234 人民搜索网 61.164.153.222 凤凰搜索网 49.233.102.63 乐搜 220.181.90.8 央视搜索 115.182.34.79
let ipList = [
'221.122.82.30',
'106.39.246.42',
'36.110.236.68',
'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',
'123.126.157.222',
'140.249.240.234',
'61.164.153.222',
'49.233.102.63',
'220.181.90.8',
'115.182.34.79',
'124.64.19.86',
'124.64.30.120'
];
let index = Math.floor((Math.random()*ipList.length));
let ip = ipList[index];
return rp({
... ...