Config class

Config for a domain

Constructors

Config({bool forceFetch = false, UserAgentDevice userAgent = UserAgentDevice.mobile, bool usePassedHtml = true, bool usePassedUserAgent = false, bool usePassedCookies = false, required Map<String, List<Parser>> parsers, required List<UrlTarget> urlTargets})

Properties

forceFetch bool
If TRUE scraper will forcefully fetch data from URL even if HTML is passed. Defaults to FALSE.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
urlTargets List<UrlTarget>
Targets are set based on page types of target website.
getter/setter pair
usePassedCookies bool
Allow custom cookies passed by user.
getter/setter pair
usePassedHtml bool
Allow this domain to use passed HTML and skip fetching HTML from URL.
getter/setter pair
usePassedUserAgent bool
Allow custom user agent passed by user.
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