need help post
RealDevBd opened this issue · 1 comments
RealDevBd commented
hi sir, i am using your package and its jut mindblowing. i need a help sir. i am using puppeteer with your package. i do not want to create profile file inside data file. how to stop creating profile file?
CheshireCaat commented
You cannot disable the profile folders usage at all, but you can periodically clear the folder with profiles, or specify your own at startup and, if necessary, delete unnecessary ones or reuse them, for example:
const fs = require('fs');
const { plugin } = require('puppeteer-with-fingerprints');
const browser = await plugin.launch({
args: [`--user-data-dir=${__dirname}/profile`],
});
// your code
await browser.close();
// remove profile
await fs.promises.rmdir(`${__dirname}/profile`, { recursive: true });