Spaces:
Sleeping
Sleeping
Commit
•
d12da9d
1
Parent(s):
895f8fd
Update index.js
Browse files
index.js
CHANGED
@@ -46,7 +46,7 @@ async function scrapeAndLog(url) {
|
|
46 |
}
|
47 |
|
48 |
// 使用cron来安排定期任务
|
49 |
-
cron.schedule('
|
50 |
console.log('Running webpage access...');
|
51 |
// 循环访问每个URL
|
52 |
urls.forEach((url) => {
|
|
|
46 |
}
|
47 |
|
48 |
// 使用cron来安排定期任务
|
49 |
+
cron.schedule('*/30 * * * * *', () => {
|
50 |
console.log('Running webpage access...');
|
51 |
// 循环访问每个URL
|
52 |
urls.forEach((url) => {
|