mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 14:33:17 +00:00
17 lines
285 B
JavaScript
Executable file
17 lines
285 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
|
|
process.once("SIGINT", () => {
|
|
console.log("SIGINT received, exiting");
|
|
process.exit(1);
|
|
});
|
|
|
|
process.once("SIGTERM", () => {
|
|
console.log("SIGTERM received, exiting");
|
|
process.exit(1);
|
|
});
|
|
|
|
|
|
const { Crawler } = require("./crawler");
|
|
|
|
new Crawler().run();
|
|
|