Skip to content

Commit 757f5ca

Browse files
committed
fixing bug
1 parent d978098 commit 757f5ca

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ app.listen(PORT, async () => {
3232
console.log(error);
3333
}
3434
});
35-
task.start();
35+
// task.start();
3636
await scrape();
3737
} catch (error) {
3838
console.log(error);

scrape.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ const scrapePage = async (url, directory) => {
4545
headers: {
4646
referer: "https://nicepage.com",
4747
},
48-
retryCount: 0,
48+
timeout: {
49+
request: 10000,
50+
},
4951
},
5052
});
5153
} catch (error) {

0 commit comments

Comments
 (0)