Config class

Top-Level Config object.

Constructors

Config({bool forceFetch = false, UserAgentDevice userAgent = UserAgentDevice.mobile, required Map<String, List<Parser>> parsers, required List<Target> targets, Map<String, String>? headers, String? proxy, String? asinPrepend})

Properties

asinPrepend String?
getter/setter pair
forceFetch bool
If true scraper will fetch data from URL. Defaults to false.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
Extra headers to pass for HTTP requests.
getter/setter pair
parsers Map<String, List<Parser>>
Map of parsers based on Target name. Set Target name as key and List of Parser as value.
getter/setter pair
proxy String?
Proxy URL, when set original URL is appended as urlencoded format to Proxy URL.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targets List<Target>
Targets are set based on page types of target website.
getter/setter pair
userAgent UserAgentDevice
User Agent selections: UserAgentDevice.desktop or UserAgentDevice.mobile Defaults to UserAgentDevice.mobile
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited