-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathinit-dev-env.js
More file actions
31 lines (26 loc) · 849 Bytes
/
init-dev-env.js
File metadata and controls
31 lines (26 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// INIT PUPPETEER (no stealth for testing)
const puppy = require('puppeteer');
// INIT PUPPETEER (with stealth)
const puppyWithStealth = require('puppeteer-extra');
const StealthPlugin = require('puppeteer-extra-plugin-stealth');
puppyWithStealth.use(StealthPlugin());
// load services
const OpenseaScraper = require("./src/index.js");
const { isUsingStealthPlugin, warnIfNotUsingStealth, sleep } = require("./src/helpers/helperFunctions.js");
// example data
const slug = "cool-cats-nft";
const options = {
debug: false,
sort: true,
logs: true,
additionalWait: 0,
browserInstance: undefined,
};
// GREET DEVELOPER
console.log("\n\n");
console.log(fs.readFileSync('init-dev-env-message.txt', 'utf8'));
console.log("\n\n");
(async () => {
browser = await puppy.launch();
browserWithStealth = await puppyWithStealth.launch();
})();