[ol]function fetchUrls() {
for (let i = 50770; i {
fetch(`https://hostloc.com/space-uid-${i}.html`)
.then(response => {
if (response.ok) {
console.log(`Fetched space-uid-${i}.html`);
} else {
console.error(`Failed to fetch space-uid-${i}.html: ${response.status}`);
}
})
.catch(error => {
console.error(`There was a problem with the fetch operation for space-uid-${i}:`, error);
});
}, (i - 1) * 6000); // 每次请求之间间隔 6 秒
}
}
fetchUrls();
[/ol]复制代码
Powered by