Skip to main content

Crate spider_fingerprint

Crate spider_fingerprint 

Source

Re-exports§

pub use spoof_headers::emulate_headers;
pub use spoof_refererer::spoof_referrer;
pub use versions::BASE_CHROME_VERSION;
pub use versions::CHROME_NOT_A_BRAND_VERSION;
pub use versions::CHROME_VERSIONS_BY_MAJOR;
pub use versions::CHROME_VERSION_FULL;
pub use versions::LATEST_CHROME_FULL_VERSION_FULL;
pub use http;
pub use url;

Modules§

configs
Builder types.
profiles
Custom static profiles.
spoof_gpu
GPU spoofs.
spoof_headers
Spoof HTTP headers.
spoof_mouse_movement
Spoof mouse-movement.
spoof_refererer
Referer headers.
spoof_user_agent
User agent.
spoof_viewport
Spoof viewport.
spoof_webgl
WebGL spoofs.
spoofs
Generic spoofs.
versions
Versions for chrome.

Structs§

EmulationConfiguration
Configuration options for browser fingerprinting and automation.

Enums§

BrowserKind
The kind of browser.
Fingerprint
The fingerprint type to use.

Functions§

agent_os_strings
Agent Operating system to string
build_stealth_script
Generate the initial stealth script to send in one command.
build_stealth_script_no_concurrency
Generate the initial stealth script to send in one command without hardware concurrency.
build_stealth_script_no_concurrency_with_profile
Generate the initial stealth script to send in one command without hardware concurrency and profile.
build_stealth_script_no_concurrency_with_profile_and_browser
Generate the initial stealth script to send in one command without hardware concurrency and profile.
build_stealth_script_with_profile
Generate the initial stealth script to send in one command and profile.
build_stealth_script_with_profile_and_browser
Generate the initial stealth script to send in one command and profile.
detect_browser
Detect the browser type.
detect_browser_kind
Detect the browser type to BrowserKind.
detect_form_factor
Return the form factor: “Mobile” | “Tablet” | “Desktop”.
detect_is_mobile
Return “?1” (mobile) or “?0” (not mobile).
emulate
Emulate a real chrome browser.
emulate_base
Emulate a real chrome browser.
emulate_with_profile
Emulate a real chrome browser with a gpu profile.
generate_hide_plugins
Generate the hide plugins script.
get_agent_os
Fast Chrome-only OS detection using Aho-Corasick (ASCII case-insensitive).
get_random_hardware_concurrency
Get a random device hardware concurrency.
is_mobile_user_agent
Returns true if the user-agent is likely a mobile browser.
join_scripts
Join the scrips pre-allocated.
join_scripts_with_capacity
Join the scrips pre-allocated.
mobile_model_from_user_agent
Does the user-agent matches a mobile device indicator.
parse_major_after
Parse the major after.
ua_allows_gethighentropy
The user-agent allows navigator.userAgentData.getHighEntropyValues
wrap_eval_script
Simple function to wrap the eval script safely.