Filter fingerprint output with criteria
mainYou can narrow down generated fingerprints by specifying filters for any data field. You can pass these as keyword arguments or as a dictionary.
Keyword arguments
fpgen.generate(os='Windows', browser='Chrome', gpu={'vendor': 'Google Inc. (Intel)'})Dictionary format
fpgen.generate({
'os': 'Windows',
'browser': 'Chrome',
'gpu': {'vendor': 'Google Inc. (Intel)'},
})Multiple constraints
To allow the generator to select from multiple possible values for a field, pass them as a tuple:
fpgen.generate({
'os': ('Windows', 'MacOS'),
'browser': ('Firefox', 'Chrome'),
})Note: If you are passing many nested constraints, run fpgen decompress to improve performance.
fpgen.generate(
os='Windows',
browser='Chrome',
gpu={'vendor': 'Google Inc. (Intel)'}
)