WebsiteSpecificStrategy class
A proxy rotation strategy that adapts to specific websites
- Implemented types
Constructors
- WebsiteSpecificStrategy.new({WebsiteFingerprint? defaultFingerprint, Random? random, Logger? logger})
- Creates a new WebsiteSpecificStrategy
Properties
- description → String
-
Gets the description of the strategy
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger?
-
Logger for logging operations
final
- name → String
-
Gets the name of the strategy
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addFingerprint(
WebsiteFingerprint fingerprint) → void - Adds a fingerprint for a domain
-
getFingerprintForDomain(
String domain) → WebsiteFingerprint - Gets the fingerprint for a domain
-
getSuccessRate(
String domain, Proxy proxy) → double - Gets the success rate for a domain and proxy
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordFailure(
String domain, Proxy proxy) → void - Records a failed request for a domain and proxy
-
recordSuccess(
String domain, Proxy proxy) → void - Records a successful request for a domain and proxy
-
selectProxy(
List< Proxy> proxies) → Proxy -
Selects a proxy from the given list
override
-
selectProxyForDomain(
String domain, List< Proxy> proxies) → Proxy - Selects a proxy for a domain
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited