东东工厂,不是京喜工厂

目前不知免费产生的电量瓶颈是多少。
故建议5小时运行一次
开会员任务和去京东首页点击“数码电器任务目前未做
不会每次运行脚本都投入电力
只有当心仪的商品存在,并且收集起来的电量满足当前商品所需电力,才投入
This commit is contained in:
lxk0301
2020-11-25 18:21:09 +08:00
parent be5b465f92
commit 7b4f196521
4 changed files with 530 additions and 4 deletions

View File

@ -58,4 +58,6 @@
# 京喜工厂
20 * * * * node /scripts/jd_dreamFactory.js >> /scripts/logs/jd_dreamFactory.log 2>&1
# 东东小窝
16 6 * * * node /scripts/jd_small_home.js >> /scripts/logs/jd_small_home.log 2>&1
16 6 * * * node /scripts/jd_small_home.js >> /scripts/logs/jd_small_home.log 2>&1
# 东东工厂
36 2 * * * node /scripts/jd_jdfactory.js >> /scripts/logs/jd_jdfactory.log 2>&1

View File

@ -58,4 +58,6 @@
# 京喜工厂
20 * * * * node /scripts/jd_dreamFactory.js |ts >> /scripts/logs/jd_dreamFactory.log 2>&1
# 东东小窝
16 6 * * * node /scripts/jd_small_home.js |ts >> /scripts/logs/jd_small_home.log 2>&1
16 6 * * * node /scripts/jd_small_home.js |ts >> /scripts/logs/jd_small_home.log 2>&1
# 东东工厂
36 2 * * * node /scripts/jd_jdfactory.js |ts >> /scripts/logs/jd_jdfactory.log 2>&1

522
jd_jdfactory.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -67,7 +67,7 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
}
continue
}
await JD818();
await jd_necklace();
}
}
})()
@ -77,7 +77,7 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
.finally(() => {
$.done();
})
async function JD818() {
async function jd_necklace() {
await necklace_homePage();
await doTask();
await necklace_homePage();