CheshireCaat / puppeteer-with-fingerprints

Anonymous automation via puppeteer with fingerprint replacement technology.
MIT License
300 stars 36 forks source link

need help post #98

Closed RealDevBd closed 4 months ago

RealDevBd commented 6 months ago

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 4 months ago

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 });