Skip to main content

Crate opentele2_browser

Crate opentele2_browser 

Source
Expand description

Browser HTTP header and fingerprint generation from the Apify fingerprint datapoints, based on browserforge.

The crate embeds the three Bayesian networks of apify_fingerprint_datapoints 0.15.0 (see data/SOURCE.md) and samples them exactly as browserforge’s bayesian_network.py does, with two deliberate differences: every random draw comes from the seedable Rng, and every set operation keeps first-seen order instead of Python’s hash order, so a seed reproduces its output on any platform.

Re-exports§

pub use fingerprint::Fingerprint;
pub use fingerprint::FingerprintGenerator;
pub use fingerprint::FingerprintOptions;
pub use fingerprint::FingerprintOverrides;
pub use fingerprint::NavigatorFingerprint;
pub use fingerprint::Screen;
pub use fingerprint::ScreenFingerprint;
pub use fingerprint::VideoCard;
pub use fingerprint::generate_fingerprint;
pub use fingerprint::generate_headers;
pub use headers::Browser;
pub use headers::HeaderGenerator;
pub use headers::HeaderOptions;
pub use headers::HeaderOverrides;
pub use headers::Headers;
pub use headers::HttpVersion;
pub use headers::browser_of;
pub use headers::get_user_agent;
pub use headers::pascalize;
pub use network::BayesianNetwork;
pub use network::Node;
pub use network::fingerprint_network;
pub use network::header_network;
pub use network::input_network;
pub use rng::Rng;

Modules§

fingerprint
Browser fingerprint generation, based on browserforge’s fingerprints/generator.py (browserforge 1.2.4).
headers
Browser HTTP header generation, based on browserforge’s headers/generator.py and headers/utils.py (browserforge 1.2.4).
network
The Bayesian networks of the Apify fingerprint datapoints and their sampler, based on browserforge’s bayesian_network.py.
rng
A small, dependency-free seeded random number generator.

Structs§

OrderedMap
A map from node names to V that iterates in insertion order.

Enums§

Error
Errors of the crate.

Type Aliases§

Restrictions
Node name to the list of values it may take, in insertion order.
Result
The crate’s result type.
Values
Node name to value, in insertion order: a (partial) network sample.