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

how to select iphone #87

Open
dindamb opened this issue Mar 5, 2024 · 4 comments
Open

how to select iphone #87

dindamb opened this issue Mar 5, 2024 · 4 comments

Comments

@dindamb
Copy link

dindamb commented Mar 5, 2024

i bought fingerprint key from bablosoft, but when i using this tags it's error, how to do that ?

const fingerprint = await plugin.fetch(mykey, {
tags: ['iPhone', 'Safari'],
});

Fingerprint error : Fingerprint with tags iPhone,Safari not found 0.

@bablosoft
Copy link
Collaborator

I can't reproduce the issue, do you have more filters?

@dindamb
Copy link
Author

dindamb commented Mar 6, 2024

there is no filter,
when i used : tags: ['Mobile', 'Chrome'] it's running well,
but when i'm using another tags like ['iPhone', 'Safari'] it's show the error.
i also try tags: ['Mobile, iPhone', 'Safari'] or ['iPhone', 'Chrome'] it's also error.
any suggest to use tags for iphone ?

@dindamb
Copy link
Author

dindamb commented Mar 6, 2024

i'm just using your sample code,

`const { plugin } = require('puppeteer-with-fingerprints');
const fpsKey = "myApiKey";

(async () => {
// Get a fingerprint from the server:

// tags: ['Microsoft Windows', 'Chrome'], // Running well

const fingerprint = await plugin.fetch(fpsKey, {
tags: ['iPhone', 'Chrome'],
});

// Apply fingerprint:
plugin.useFingerprint(fingerprint);

// Launch the browser instance:
const browser = await plugin.launch({headless:false});

// The rest of the code is the same as for a standard puppeteer library:
const page = await browser.newPage();
await page.goto('https://example.com');

// Print the browser viewport size:
console.log(
'Viewport:',
await page.evaluate(() => ({
deviceScaleFactor: window.devicePixelRatio,
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight,
}))
);

await page.waitForTimeout(20500);
await browser.close();
})();`

Error Code :
bablosoft-error

@dindamb
Copy link
Author

dindamb commented Mar 9, 2024

I can't reproduce the issue, do you have more filters?

how to solve this problem, sir ?

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

2 participants