Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu and RAM are always fixed at 2 #101

Closed
DevChenwei opened this issue Jun 15, 2023 · 1 comment
Closed

cpu and RAM are always fixed at 2 #101

DevChenwei opened this issue Jun 15, 2023 · 1 comment

Comments

@DevChenwei
Copy link

const GL = new GoLogin({
  token: token,
});
await GL.create({
  name: 'profile_mac',
  os: 'mac',
  navigator: {
    language: 'enUS',
    userAgent: 'random', // get random user agent for selected os
    resolution: '1024x768',
    platform: 'mac',
  },
  proxyEnabled: false,
  proxy: {
    mode: 'none',
  }
});
image

Created with sample code, cpu and RAM are always fixed at 2, and features are identified by anti-crawling

@stepjet
Copy link
Contributor

stepjet commented Jun 15, 2023

these are the default values, you can randomize them in the constructor (deviceMemory, hardwareConcurrency params)

  await GL.create({
	    name: 'profile_mac',
	    os: 'Mac',
	    navigator: {
	      language: 'enUS',
	      userAgent: 'random', // get random user agent for selected os
	      resolution: '1024x768',
	      platform: 'Mac',
	      deviceMemory: '6', // <-- RAM
	      hardwareConcurrency: '8' // <-- CPU Threads
	    },
	    proxyEnabled: false,
	    proxy: {
	      mode: 'none',
	    }
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants