Comments (1)
Hi @tenkuken, the fingerprint-suite
tools are based on a random generator - therefore, there is no straightforward way how to generate non-redundant data. This, however, doesn't mean you cannot get a list of non-duplicate user-agents - you just have to deal with it in your own code. Here is an example of how you can do this:
const { HeaderGenerator } = require('header-generator');
const headerGenerator = new HeaderGenerator();
const userAgents = {};
for (let i = 0; i < 1e4; i++) {
const userAgent = headerGenerator.getHeaders()['user-agent'];
userAgents[userAgent] = true;
}
console.log(Object.keys(userAgents));
In this snippet, we generate 10000 header sets and deduplicate the user agents by using them as keys in a JavaScript object.
Please note that the looser constraints you set for the generator (by removing the 'locales', 'operatingSystems'
or 'devices'
options from the getFingerprint()
call), the more distinct user-agent strings the generator will be able to generate.
A very important footnote:
If you really need only the user-agent strings (or some other HTTP headers) you'll be much better off with using HeaderGenerator
instead of FingerprintGenerator
. Here is a graph of run times for the script above using different tools to generate user-agent strings:
You see that the header-generator
(in my snippet above) is the fastest option with an average run time of just under 2 seconds, and the fingerprint-generator
option (from your snippet) is the slowest one with 8s. This is because the fingerprint-generator
uses a much larger model for generating not only the user-agent
string but also screen dimensions, different Web API values, etc.
Feel free to use the script I provided above :)
I'll close this issue as wontfix, but feel free to ask additional questions if you get any.
from fingerprint-suite.
Related Issues (20)
- Headers customization HOT 2
- Opera User Agent Missing. HOT 1
- Prompt browser is not safe, how to solve this problem? HOT 1
- Invalid filename after Electron build HOT 1
- Invalid Filename Error on Instantiating `FingerprintGenerator` in AWS Lambda HOT 8
- Bug in platform generation `"platform": "Win32"` HOT 3
- Invalid Filename Error on Instantiating FingerprintGenerator in AWS Lambda
- Antibot system HOT 1
- Relaxing the constraints & Strict mode HOT 1
- Fingerprint of my browser to fingerprint-suite HOT 1
- Nowsecure.nl does not pass HOT 4
- Bug fonts in fingerprint generator HOT 1
- navigator.userAgentData.getHighEntropyValues() doesn't return the values of base hints HOT 1
- Browser hangs when navigating on shopee.com.my when overriding codecs HOT 4
- Please add documentation
- navigator.mediaDevices maybe nullable HOT 1
- What are all the "fingerprintOptions" options of newInjectedPage() from "fingerprint-injector" HOT 1
- `sec-ch-ua` header is weirdly inconsistent HOT 4
- No Docs/API reference? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fingerprint-suite.