Update index.js
Browse files
index.js
CHANGED
@@ -39,32 +39,30 @@ function visitWebsites() {
|
|
39 |
|
40 |
'https://gdd45c-3000.csb.app',// 此处德国的
|
41 |
|
42 |
-
'',
|
43 |
-
'',
|
44 |
-
'https://noble-hissing-galette.glitch.me',
|
45 |
-
'https://upbeat-luxuriant-countess.glitch.me',
|
46 |
'https://jade-planet-wasp.glitch.me',
|
47 |
'https://fantasy-everlasting-hydrofoil.glitch.me',
|
48 |
-
'https://
|
49 |
'https://spiky-pyrite-sled.glitch.me',
|
50 |
-
'https://
|
51 |
'https://scrawny-fluorescent-pet.glitch.me',
|
52 |
-
'https://
|
53 |
'https://discovered-hot-cloud.glitch.me',
|
54 |
'https://crimson-classy-spectroscope.glitch.me',
|
55 |
'https://efficient-just-camelotia.glitch.me',
|
56 |
-
'https://
|
57 |
-
'https://
|
58 |
'https://kindly-possible-chickadee.glitch.me',
|
59 |
-
'https://
|
60 |
-
'https://
|
61 |
'https://melodic-local-tadpole.glitch.me',
|
62 |
-
'https://
|
63 |
'https://inconclusive-functional-message.glitch.me',
|
64 |
'https://abstracted-giddy-gibbon.glitch.me',
|
65 |
'https://foil-funky-hen.glitch.me',
|
66 |
'https://equable-diligent-candle.glitch.me',
|
67 |
-
'https://
|
68 |
'https://pretty-sixth-silene.glitch.me',
|
69 |
'https://kindly-turquoise-hippopotamus.glitch.me',
|
70 |
'https://hickory-motley-snowflake.glitch.me',
|
@@ -73,13 +71,13 @@ function visitWebsites() {
|
|
73 |
'https://steady-narrow-timimus.glitch.me',
|
74 |
'https://inconclusive-carnelian-aardwolf.glitch.me',
|
75 |
'https://rustic-equal-jasmine.glitch.me',
|
76 |
-
'https://
|
77 |
'https://showy-fish-tithonia.glitch.me',
|
78 |
'https://bottlenose-spiky-teller.glitch.me',
|
79 |
'https://winter-sturdy-persimmon.glitch.me',
|
80 |
'https://peppered-ossified-candy.glitch.me',
|
81 |
'https://paint-typical-coach.glitch.me',
|
82 |
-
'https://
|
83 |
'https://terrific-decorous-trouser.glitch.me',
|
84 |
'https://ancient-melodious-crayon.glitch.me',
|
85 |
'https://intelligent-outrageous-wasabi.glitch.me',
|
@@ -87,7 +85,7 @@ function visitWebsites() {
|
|
87 |
'https://level-humane-rail.glitch.me',
|
88 |
'https://gleaming-hot-condorraptor.glitch.me',
|
89 |
'https://lunar-lydian-triangle.glitch.me',
|
90 |
-
'https://
|
91 |
'https://imaginary-brainy-spoon.glitch.me',
|
92 |
'https://fortunate-airy-hexagon.glitch.me',
|
93 |
'https://groovy-rural-statistic.glitch.me',
|
@@ -102,15 +100,16 @@ function visitWebsites() {
|
|
102 |
'https://honeysuckle-wistful-pyramid.glitch.me',
|
103 |
'https://few-lively-kettle.glitch.me',
|
104 |
'https://volcano-full-salmon.glitch.me',
|
105 |
-
'https://
|
106 |
'https://flash-aquatic-citipati.glitch.me',
|
107 |
'https://florentine-swanky-taker.glitch.me',
|
108 |
'https://unique-efficient-inch.glitch.me',
|
109 |
-
'https://
|
110 |
-
'https://
|
111 |
'https://regal-responsible-yam.glitch.me',
|
112 |
-
'https://
|
113 |
-
'https://
|
|
|
114 |
|
115 |
|
116 |
'https://www.google.com' // 此处可备注名称,例如:Back4app,最后一个url后面没有逗号
|
@@ -151,14 +150,14 @@ function startVisits() {
|
|
151 |
// visitWebsites();
|
152 |
visitIntervalId = setInterval(() => {
|
153 |
visitWebsites();
|
154 |
-
},
|
155 |
}
|
156 |
|
157 |
function runScript() {
|
158 |
const runScriptIntervalId = setInterval(() => {
|
159 |
//console.log('Running script');
|
160 |
checkAndSetTimer();
|
161 |
-
},
|
162 |
}
|
163 |
checkAndSetTimer();
|
164 |
runScript();
|
@@ -172,7 +171,7 @@ async function scrapeAndLog(url) {
|
|
172 |
console.error(`${moment().tz('Asia/Hong_Kong').format('YYYY-MM-DD HH:mm:ss')}: Web visited Error: ${url}: ${error.message}\n`);
|
173 |
}
|
174 |
}
|
175 |
-
// 每
|
176 |
cron.schedule('*/2 * * * *', () => {
|
177 |
console.log('Running webpage access...');
|
178 |
urls.forEach((url) => {
|
|
|
39 |
|
40 |
'https://gdd45c-3000.csb.app',// 此处德国的
|
41 |
|
42 |
+
'https://mud-roasted-relative.glitch.me',
|
43 |
+
'https://omniscient-buttery-plate.glitch.me',
|
|
|
|
|
44 |
'https://jade-planet-wasp.glitch.me',
|
45 |
'https://fantasy-everlasting-hydrofoil.glitch.me',
|
46 |
+
'https://disco-hungry-soda.glitch.me',
|
47 |
'https://spiky-pyrite-sled.glitch.me',
|
48 |
+
'https://awesome-proud-dogsled.glitch.me',
|
49 |
'https://scrawny-fluorescent-pet.glitch.me',
|
50 |
+
'https://rhinestone-road-foundation.glitch.me',
|
51 |
'https://discovered-hot-cloud.glitch.me',
|
52 |
'https://crimson-classy-spectroscope.glitch.me',
|
53 |
'https://efficient-just-camelotia.glitch.me',
|
54 |
+
'https://efficient-beaded-sternum.glitch.me',
|
55 |
+
'https://hill-marmalade-promotion.glitch.me',
|
56 |
'https://kindly-possible-chickadee.glitch.me',
|
57 |
+
'https://powerful-boatneck-mice.glitch.me',
|
58 |
+
'https://resolute-juvenile-hyena.glitch.me',
|
59 |
'https://melodic-local-tadpole.glitch.me',
|
60 |
+
'https://pear-absorbed-skate.glitch.me',
|
61 |
'https://inconclusive-functional-message.glitch.me',
|
62 |
'https://abstracted-giddy-gibbon.glitch.me',
|
63 |
'https://foil-funky-hen.glitch.me',
|
64 |
'https://equable-diligent-candle.glitch.me',
|
65 |
+
'https://triangular-chocolate-hosta.glitch.me',
|
66 |
'https://pretty-sixth-silene.glitch.me',
|
67 |
'https://kindly-turquoise-hippopotamus.glitch.me',
|
68 |
'https://hickory-motley-snowflake.glitch.me',
|
|
|
71 |
'https://steady-narrow-timimus.glitch.me',
|
72 |
'https://inconclusive-carnelian-aardwolf.glitch.me',
|
73 |
'https://rustic-equal-jasmine.glitch.me',
|
74 |
+
'https://tortoiseshell-branch-twill.glitch.me',
|
75 |
'https://showy-fish-tithonia.glitch.me',
|
76 |
'https://bottlenose-spiky-teller.glitch.me',
|
77 |
'https://winter-sturdy-persimmon.glitch.me',
|
78 |
'https://peppered-ossified-candy.glitch.me',
|
79 |
'https://paint-typical-coach.glitch.me',
|
80 |
+
'https://battle-vanilla-reindeer.glitch.me',
|
81 |
'https://terrific-decorous-trouser.glitch.me',
|
82 |
'https://ancient-melodious-crayon.glitch.me',
|
83 |
'https://intelligent-outrageous-wasabi.glitch.me',
|
|
|
85 |
'https://level-humane-rail.glitch.me',
|
86 |
'https://gleaming-hot-condorraptor.glitch.me',
|
87 |
'https://lunar-lydian-triangle.glitch.me',
|
88 |
+
'https://rare-thirsty-coat.glitch.me',
|
89 |
'https://imaginary-brainy-spoon.glitch.me',
|
90 |
'https://fortunate-airy-hexagon.glitch.me',
|
91 |
'https://groovy-rural-statistic.glitch.me',
|
|
|
100 |
'https://honeysuckle-wistful-pyramid.glitch.me',
|
101 |
'https://few-lively-kettle.glitch.me',
|
102 |
'https://volcano-full-salmon.glitch.me',
|
103 |
+
'https://flaxen-steadfast-patella.glitch.me',
|
104 |
'https://flash-aquatic-citipati.glitch.me',
|
105 |
'https://florentine-swanky-taker.glitch.me',
|
106 |
'https://unique-efficient-inch.glitch.me',
|
107 |
+
'https://puddle-rare-observatory.glitch.me',
|
108 |
+
'https://imported-golden-motion.glitch.me',
|
109 |
'https://regal-responsible-yam.glitch.me',
|
110 |
+
'https://sulky-sleepy-freesia.glitch.me',
|
111 |
+
'https://fog-seed-bassoon.glitch.me',
|
112 |
+
|
113 |
|
114 |
|
115 |
'https://www.google.com' // 此处可备注名称,例如:Back4app,最后一个url后面没有逗号
|
|
|
150 |
// visitWebsites();
|
151 |
visitIntervalId = setInterval(() => {
|
152 |
visitWebsites();
|
153 |
+
}, 3 * 60 * 1000); // 每2分钟执行一次访问
|
154 |
}
|
155 |
|
156 |
function runScript() {
|
157 |
const runScriptIntervalId = setInterval(() => {
|
158 |
//console.log('Running script');
|
159 |
checkAndSetTimer();
|
160 |
+
}, 3 * 60 * 1000); // 每2分钟检查一次
|
161 |
}
|
162 |
checkAndSetTimer();
|
163 |
runScript();
|
|
|
171 |
console.error(`${moment().tz('Asia/Hong_Kong').format('YYYY-MM-DD HH:mm:ss')}: Web visited Error: ${url}: ${error.message}\n`);
|
172 |
}
|
173 |
}
|
174 |
+
// 每3分钟访问一次
|
175 |
cron.schedule('*/2 * * * *', () => {
|
176 |
console.log('Running webpage access...');
|
177 |
urls.forEach((url) => {
|